From f9fd50a35711f8f5637c57c276f12410dde9ec9e Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Sun, 25 Sep 2016 23:17:20 +0200 Subject: [PATCH] nullptr when doing module backward compat on invalid config --- src/core/settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/settings.c b/src/core/settings.c index e65ceb2c..4e0717cd 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -585,6 +585,7 @@ void settings_check_module(const char *module) for (; tmp != NULL; tmp = next) { node = tmp->data; next = config_node_next(tmp); + if (node->key == NULL) continue; set = g_hash_table_lookup(settings, node->key); if (backwards_compatibility(module, node, parent))