Merge tag 'upstream/3.3.2'
[debian/amanda] / common-src / timestamp.c
index 30963555d25f80171edd43a99c1bd1446737bb76..8589b9a054f604595221edf6e99e6ca9b1639005 100644 (file)
@@ -74,6 +74,12 @@ time_t get_time_from_timestamp(char *timestamp)
     struct tm tm;
     char t[5];
     time_t tt;
+    tm.tm_year = 0;
+    tm.tm_mon = 0;
+    tm.tm_mday = 1;
+    tm.tm_hour = 0;
+    tm.tm_min = 0;
+    tm.tm_sec = 0;
 
     if (strlen(timestamp) >= 4) {
        memcpy(t, timestamp, 4);