diff options
author | Vincent Untz <vuntz@gnome.org> | 2009-12-27 02:09:44 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-12-29 10:21:43 +0000 |
commit | 80c5178127052e600146ca889500e263da4ebf10 (patch) | |
tree | b7413acf4694743c127679c5b3eda96f065c7527 /json-glib/json-gobject.c | |
parent | e3a57eae397926ad23e216996eda164ed6c15c63 (diff) | |
download | json-glib-80c5178127052e600146ca889500e263da4ebf10.tar.gz |
Initialize out variables before using them
Here's a small patch for json-glib, to fix some gcc warnings breaking
the build with -Werror (gcc can't know if the variable will get
initialized or not). I didn't find a product for json-glib in bugzilla,
but I guess a mail will work ;-)
Happy holidays :-)
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | json-glib/json-gobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c index 462a2c8..ae98b2b 100644 --- a/json-glib/json-gobject.c +++ b/json-glib/json-gobject.c @@ -503,7 +503,7 @@ json_deserialize_pspec (GValue *value, case G_TYPE_ENUM: { - gint enum_value; + gint enum_value = 0; if (G_VALUE_HOLDS (&node_value, G_TYPE_INT64)) { @@ -524,7 +524,7 @@ json_deserialize_pspec (GValue *value, case G_TYPE_FLAGS: { - gint flags_value; + gint flags_value = 0; if (G_VALUE_HOLDS (&node_value, G_TYPE_INT64)) { |