projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix for #693331, amserverconfig trying to create /var/lib/lib/amanda
[debian/amanda]
/
common-src
/
timestamp.c
diff --git
a/common-src/timestamp.c
b/common-src/timestamp.c
index 30963555d25f80171edd43a99c1bd1446737bb76..8589b9a054f604595221edf6e99e6ca9b1639005 100644
(file)
--- a/
common-src/timestamp.c
+++ b/
common-src/timestamp.c
@@
-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);