From d31f20e6e23fd84f9581ef71a5a63c2b980bd1a6 Mon Sep 17 00:00:00 2001 From: lazymio Date: Mon, 28 Jul 2025 21:25:59 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"glib=5Fcompat/glib=5Fcompact:=20Clear?= =?UTF-8?q?=20the=20buffer=20in=20g=5Fhash=5Ftable=5Fresize=20(#2=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c8bc9eb9b097ecf5f52abccc16b20b9b69e1e97c. --- glib_compat/glib_compat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib_compat/glib_compat.c b/glib_compat/glib_compat.c index b730da1054..2bb718283d 100644 --- a/glib_compat/glib_compat.c +++ b/glib_compat/glib_compat.c @@ -716,7 +716,6 @@ static void g_hash_table_resize (GHashTable *hash_table) g_hash_table_set_shift_from_size (hash_table, hash_table->nnodes * 2); new_nodes = g_new0 (GHashNode, hash_table->size); - memset(new_nodes, 0, hash_table->size * sizeof(GHashNode)); for (i = 0; i < old_size; i++) {