X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Ftimestamp.c;fp=common-src%2Ftimestamp.c;h=8589b9a054f604595221edf6e99e6ca9b1639005;hb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;hp=30963555d25f80171edd43a99c1bd1446737bb76;hpb=c6f0a88c567f8536c498f554285aed1f8150da18;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);