diff options
author | Peder Stray <peder.stray@gmail.com> | 2015-04-19 13:14:54 +0200 |
---|---|---|
committer | Peder Stray <peder.stray@gmail.com> | 2015-04-20 08:01:01 +0200 |
commit | 6b56f098e941563258a9a7fb207f1df6de7cbb11 (patch) | |
tree | 200c784b86a139176320d26aa96136269c774d68 /src/lib-config | |
parent | c7b428bdafc749ec3a2407c3dc1f271a013c1702 (diff) | |
download | irssi-6b56f098e941563258a9a7fb207f1df6de7cbb11.zip |
Change g_hash_table_contains() for compatibility with glib < 2.32
Diffstat (limited to 'src/lib-config')
-rw-r--r-- | src/lib-config/get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib-config/get.c b/src/lib-config/get.c index 53d744da..a83686fd 100644 --- a/src/lib-config/get.c +++ b/src/lib-config/get.c @@ -68,7 +68,7 @@ CONFIG_NODE *config_node_section_index(CONFIG_REC *rec, CONFIG_NODE *parent, con config_node_remove(rec, parent, node); node = NULL; show_error = 1; - } else if (!g_hash_table_contains(rec->cache_nodes, node)) { + } else if (!g_hash_table_lookup_extended(rec->cache_nodes, node, NULL, NULL)) { g_hash_table_insert(rec->cache_nodes, node, NULL); show_error = 1; } |