diff options
-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; |