1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

fix use of wrong "equal" function in meta hash tables

This commit is contained in:
Ailin Nemui 2021-08-12 23:46:31 +02:00
parent 7452ec34ad
commit 554a8556d2
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ void server_connect_init(SERVER_REC *server)
server->type = module_get_uniq_id("SERVER", 0); server->type = module_get_uniq_id("SERVER", 0);
server_ref(server); server_ref(server);
server->current_incoming_meta = server->current_incoming_meta =
g_hash_table_new_full(g_str_hash, (GEqualFunc) g_strcmp0, g_hash_table_new_full(g_str_hash, (GEqualFunc) g_str_equal,
(GDestroyNotify) i_refstr_release, (GDestroyNotify) g_free); (GDestroyNotify) i_refstr_release, (GDestroyNotify) g_free);
server->nick = g_strdup(server->connrec->nick); server->nick = g_strdup(server->connrec->nick);

View File

@ -116,7 +116,7 @@ void textbuffer_meta_rec_free(TEXT_BUFFER_META_REC *rec)
static void meta_hash_create(struct _TEXT_BUFFER_META_REC *meta) static void meta_hash_create(struct _TEXT_BUFFER_META_REC *meta)
{ {
if (meta->hash == NULL) { if (meta->hash == NULL) {
meta->hash = g_hash_table_new_full(g_str_hash, (GEqualFunc) g_strcmp0, meta->hash = g_hash_table_new_full(g_str_hash, (GEqualFunc) g_str_equal,
(GDestroyNotify) i_refstr_release, (GDestroyNotify) i_refstr_release,
(GDestroyNotify) g_free); (GDestroyNotify) g_free);
} }