Initialize variables to not make gcc nervous.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 9 Aug 2005 02:45:20 +0000 (02:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 9 Aug 2005 02:45:20 +0000 (02:45 +0000)
2005-08-08  Matthias Clasen  <mclasen@redhat.com>

* glib/gutils.c (_g_compute_locale_variants): Initialize
variables to not make gcc nervous.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gutils.c

index 9e5efd1..6d7cf1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (_g_compute_locale_variants): Initialize
+       variables to not make gcc nervous.
+
 2005-08-08  Manish Singh  <yosh@gimp.org>
 
        * glib/abicheck.sh: remove stray -V option to grep so it actually
index 9e5efd1..6d7cf1a 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (_g_compute_locale_variants): Initialize
+       variables to not make gcc nervous.
+
 2005-08-08  Manish Singh  <yosh@gimp.org>
 
        * glib/abicheck.sh: remove stray -V option to grep so it actually
index 9e5efd1..6d7cf1a 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (_g_compute_locale_variants): Initialize
+       variables to not make gcc nervous.
+
 2005-08-08  Manish Singh  <yosh@gimp.org>
 
        * glib/abicheck.sh: remove stray -V option to grep so it actually
index 9e5efd1..6d7cf1a 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (_g_compute_locale_variants): Initialize
+       variables to not make gcc nervous.
+
 2005-08-08  Manish Singh  <yosh@gimp.org>
 
        * glib/abicheck.sh: remove stray -V option to grep so it actually
index 5e03a35..6001457 100644 (file)
@@ -2560,10 +2560,10 @@ _g_compute_locale_variants (const gchar *locale)
 {
   GSList *retval = NULL;
 
-  gchar *language;
-  gchar *territory;
-  gchar *codeset;
-  gchar *modifier;
+  gchar *language = NULL;
+  gchar *territory = NULL;
+  gchar *codeset = NULL;
+  gchar *modifier = NULL;
 
   guint mask;
   guint i;