From c7ee7091d2b2897dabf1a9fece66b52689701ae9 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 18 Dec 2012 14:09:46 +0200 Subject: [PATCH] audio: Don't print an error for missing conf file --- profiles/audio/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/audio/main.c b/profiles/audio/main.c index 6bf406f0f..adc9e4531 100644 --- a/profiles/audio/main.c +++ b/profiles/audio/main.c @@ -54,7 +54,8 @@ static GKeyFile *load_config_file(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; -- 2.47.3