summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-15 02:25:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-15 02:25:47 +0000
commitaacac39879203869ff190be2df7a6f0556ced060 (patch)
treedf8676cc2d7b50c164d3cb39fab42c31194d9b48 /input
parentb0151710a8127f566d4d1dde35c9896e0938e025 (diff)
Fix key file handling if config file doesn't exist
Diffstat (limited to 'input')
-rw-r--r--input/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/main.c b/input/main.c
index 6018cf7e..49252ea1 100644
--- a/input/main.c
+++ b/input/main.c
@@ -78,7 +78,8 @@ static int input_init(void)
return -EIO;
}
- g_key_file_free(config);
+ if (config)
+ g_key_file_free(config);
register_service("input", uuids);