ghash: Suppress -Wmaybe-uninitialized from GCC 4.4
authorColin Walters <walters@verbum.org>
Tue, 2 Apr 2013 18:10:15 +0000 (14:10 -0400)
committerColin Walters <walters@verbum.org>
Tue, 2 Apr 2013 18:14:42 +0000 (14:14 -0400)
It's not clever enough to figure out that these are always initialized
in code paths that use them.

Reviewed-By: Benjamin Otte <otte@gnome.org>
glib/ghash.c

index eb828bd..9150f32 100644 (file)
@@ -841,8 +841,8 @@ g_hash_table_insert_node (GHashTable *hash_table,
 {
   gboolean already_exists;
   guint old_hash;
-  gpointer key_to_free;
-  gpointer value_to_free;
+  gpointer key_to_free = NULL;
+  gpointer value_to_free = NULL;
 
   old_hash = hash_table->hashes[node_index];
   already_exists = HASH_IS_REAL (old_hash);