From: Daniel Wagner <[email protected]>
No need to complain when there is no file to load.
---
v1: Check error code instead using g_file_test()
src/storage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/storage.c b/src/storage.c
index 1ceafb9..2f0c9ef 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -48,7 +48,8 @@ static GKeyFile *storage_load(const char *pathname)
keyfile = g_key_file_new();
if (!g_key_file_load_from_file(keyfile, pathname, 0, &error)) {
- DBG("Unable to load %s: %s", pathname, error->message);
+ if (error->code != G_FILE_ERROR_NOENT)
+ DBG("Unable to load %s: %s", pathname, error->message);
g_clear_error(&error);
g_key_file_free(keyfile);
--
1.8.2.rc3.16.gce432ca
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman