[glib] gdatetime: Quiet GCC warning about possibly-uninitialized



commit c026cf56a178ef786b8a372d4c1cd01e2ab2a3c9
Author: Colin Walters <walters verbum org>
Date:   Wed May 11 13:19:05 2011 -0400

    gdatetime: Quiet GCC warning about possibly-uninitialized

 glib/gdatetime.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index ead4d30..52a73c7 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -2318,10 +2318,10 @@ g_date_time_format (GDateTime *datetime,
   GString  *outstr;
   gchar    *tmp;
   gunichar  c;
-  gboolean  in_mod;
-  gboolean  alt_digits;
-  gboolean  pad_set;
-  gchar     pad;
+  gboolean  in_mod = FALSE;
+  gboolean  alt_digits = FALSE;
+  gboolean  pad_set = FALSE;
+  gchar     pad = '\0';
   gchar     fmt[20];
 
   g_return_val_if_fail (datetime != NULL, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]