summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-05 22:02:30 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-05 22:02:30 +0200
commit1e62c84478c5eccbfbd22cb3c77a6e49cdc3b992 (patch)
tree91373bb3b47e48710368bcb52bafc4d7d930dcdb /src
parent5eb50e89d12e9e8f89b29145edaf9bdef7e7d597 (diff)
Set list separator before loading the config file
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6a25fc54..ba8d71ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -70,6 +70,8 @@ static GKeyFile *load_config(const char *file)
keyfile = g_key_file_new();
+ 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);
g_error_free(err);
@@ -77,8 +79,6 @@ static GKeyFile *load_config(const char *file)
return NULL;
}
- g_key_file_set_list_separator(keyfile, ',');
-
return keyfile;
}