OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a292a
)
input: Don't print an error for missing conf file
author
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 18 Dec 2012 12:09:37 +0000
(14:09 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 18 Dec 2012 12:09:37 +0000
(14:09 +0200)
profiles/input/manager.c
patch
|
blob
|
history
diff --git
a/profiles/input/manager.c
b/profiles/input/manager.c
index
622e24b
..
145f8a0
100644
(file)
--- a/
profiles/input/manager.c
+++ b/
profiles/input/manager.c
@@
-119,7
+119,8
@@
static GKeyFile *load_config_file(const char *file)
keyfile = g_key_file_new();
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;