lintian doesn't like orphan packages with uploaders...
[debian/amanda] / common-src / timestamp.c
index bc24018b482557b766732ce1925d3bbb3066816d..4699a848e7be3e44ec89bedf89a120f82a87fa4f 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1999 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -24,6 +25,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 +75,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);