[libgda] gda-util.c: Avoid a maybe-used-uninitialized variable warning.



commit 7e38eb1b33493087a8027d6e2d44feb06630f46b
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Nov 7 11:01:54 2013 +0100

    gda-util.c: Avoid a maybe-used-uninitialized variable warning.

 libgda/gda-util.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index 92118b5..4121999 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -3050,9 +3050,9 @@ static gboolean
 _parse_formatted_date (GDate *gdate, const gchar *value, GDateDMY first, GDateDMY second, GDateDMY third, 
gchar sep,
                       const char **out_endptr)
 {
-       GDateYear year;
-       GDateMonth month;
-       GDateDay day;
+       GDateYear year = G_DATE_BAD_YEAR;
+       GDateMonth month = G_DATE_BAD_MONTH;
+       GDateDay day = G_DATE_BAD_DAY;
        unsigned long int tmp;
        const char *endptr;
        guint8 iter;


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