projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cddb54
)
ghash: Suppress -Wmaybe-uninitialized from GCC 4.4
author
Colin Walters
<walters@verbum.org>
Tue, 2 Apr 2013 18:10:15 +0000
(14:10 -0400)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/glib/ghash.c
b/glib/ghash.c
index
eb828bd
..
9150f32
100644
(file)
--- a/
glib/ghash.c
+++ b/
glib/ghash.c
@@
-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);