]> jfr.im git - irc/irssi/irssi.git/commitdiff
nullptr when doing module backward compat on invalid config
authorailin-nemui <redacted>
Sun, 25 Sep 2016 21:17:20 +0000 (23:17 +0200)
committerailin-nemui <redacted>
Sun, 25 Sep 2016 21:17:20 +0000 (23:17 +0200)
src/core/settings.c

index e65ceb2ced0a9d989a1760efe3a6a21e72e68266..4e0717cdd6ff4739c072e3b0937b3e7a1a29d1db 100644 (file)
@@ -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))