mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-19 10:05:09 +08:00
core: Don't print an error for missign main.conf file
This commit is contained in:
parent
d50d267b61
commit
3f6a335754
@ -90,7 +90,8 @@ 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)) {
|
||||
error("Parsing %s failed: %s", file, err->message);
|
||||
if (!g_error_matches(err, G_FILE_ERROR, G_FILE_ERROR_NOENT))
|
||||
error("Parsing %s failed: %s", file, err->message);
|
||||
g_error_free(err);
|
||||
g_key_file_free(keyfile);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user