stoddard 00/01/17 15:23:48
Modified: src/lib/apr/time/unix timestr.c Log: Initialize struct tm Submitted by: Paul Reder Revision Changes Path 1.6 +1 -1 apache-2.0/src/lib/apr/time/unix/timestr.c Index: timestr.c =================================================================== RCS file: /home/cvs/apache-2.0/src/lib/apr/time/unix/timestr.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- timestr.c 2000/01/09 05:18:21 1.5 +++ timestr.c 2000/01/17 23:23:46 1.6 @@ -159,7 +159,7 @@ const char *format, ap_exploded_time_t *xt) { struct tm tm; - + memset(&tm, 0, sizeof(struct tm)); tm.tm_sec = xt->tm_sec; tm.tm_min = xt->tm_min; tm.tm_hour = xt->tm_hour;