-fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 29 Jun 2012 20:36:04 +0000 (20:36 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 29 Jun 2012 20:36:04 +0000 (20:36 +0000)
src/util/strings.c

index 9c7f95e7c1a398c17443f98c7224da7011b77983..3167c9610354fea29cbd009dd8566d02805cd2d0 100644 (file)
@@ -324,6 +324,7 @@ GNUNET_STRINGS_fancy_time_to_absolute (const char *fancy_time,
   struct tm tv;
   time_t t;
 
+  memset (&tv, 0, sizeof (tv));
   if ( (NULL == strptime (fancy_time, "%c", &tv)) &&
        (NULL == strptime (fancy_time, "%Ec", &tv)) &&
        (NULL == strptime (fancy_time, "%Y-%m-%d %H:%M:%S", &tv)) &&