=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- mandoc/Attic/strings.c 2008/12/29 18:08:44 1.4 +++ mandoc/Attic/strings.c 2009/01/06 15:49:44 1.5 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.4 2008/12/29 18:08:44 kristaps Exp $ */ +/* $Id: strings.c,v 1.5 2009/01/06 15:49:44 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -132,6 +132,8 @@ time_t mdoc_atotime(const char *p) { struct tm tm; + + (void)memset(&tm, 0, sizeof(struct tm)); if (strptime(p, "%b %d %Y", &tm)) return(mktime(&tm));