]> code.citadel.org Git - citadel.git/blobdiff - webcit/fmt_date.c
* sanitize accesses, so valgrind doesn't moan of uninitialized values
[citadel.git] / webcit / fmt_date.c
index 0492dbf550978604f20b6bcf498b4d48e67f98ad..ac4af4337bc64904a9882d54358f982959868464 100644 (file)
@@ -157,6 +157,8 @@ time_t httpdate_to_timestamp(char *buf)
        for (c = buf; *c != ' '; c++)
                ;
        c++;
+       
+       memset(&tt, 0, sizeof(tt));
 
        /* Get day of month */
        tt.tm_mday = atoi(c);