X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Ftimestamp.c;fp=common-src%2Ftimestamp.c;h=8589b9a054f604595221edf6e99e6ca9b1639005;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=30963555d25f80171edd43a99c1bd1446737bb76;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/common-src/timestamp.c b/common-src/timestamp.c index 3096355..8589b9a 100644 --- 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);