Imported Upstream version 3.3.2
[debian/amanda] / common-src / timestamp.c
index bc24018b482557b766732ce1925d3bbb3066816d..8589b9a054f604595221edf6e99e6ca9b1639005 100644 (file)
@@ -24,6 +24,7 @@
  * file named AUTHORS, in the root directory of this distribution.
  */
 
+#include "amanda.h"
 #include "timestamp.h"
 #include "conffile.h"
 #include <glib.h>
@@ -73,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);