diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-06-21 13:42:39 -0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-06-27 16:15:08 +0200 |
commit | 12dbfca7b45c31ba9de6f64286b15b4a4ce6e015 (patch) | |
tree | 5e932beb3b3655c9eb958e4003d84a4436ca0515 /src/main.c | |
parent | 4d6fdeeb29d9c78ce99f54c6f7d01e6177706cad (diff) | |
download | connman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.tar.gz connman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.tar.bz2 connman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.zip |
main: Be quiet when config file isn't found
It's ok to run ConnMann without a configuration file, so don't print an
error message when this happens.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -57,7 +57,11 @@ static GKeyFile *load_config(const char *file) g_key_file_set_list_separator(keyfile, ','); if (!g_key_file_load_from_file(keyfile, file, 0, &err)) { - connman_error("Parsing %s failed: %s", file, err->message); + if (err->code != G_FILE_ERROR_NOENT) { + connman_error("Parsing %s failed: %s", file, + err->message); + } + g_error_free(err); g_key_file_free(keyfile); return NULL; |