diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-29 16:23:44 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-29 16:23:44 +0100 |
commit | a5a787eac52734a926d39e958d22b87a450d42aa (patch) | |
tree | a0bb28165588f7210d302279ead92b215cec26cf | |
parent | 3f739b19f709cf52ce34c1a4957f0268d5909639 (diff) |
Check if error is non-NULL in conf_get_int.
-rw-r--r-- | walls_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/walls_conf.c b/walls_conf.c index 9eb4fdc..7b31d13 100644 --- a/walls_conf.c +++ b/walls_conf.c @@ -37,7 +37,7 @@ gint conf_get_int(const gchar *group_name, const gchar *key, gint _default) { ret = g_key_file_get_integer(keyfile, group_name, key, &error); - if(ret == 0) { + if(ret == 0 && error) { g_warning("Can't get key from config: %s", error->message); g_error_free(error); return _default; |