diff options
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -133,6 +133,8 @@ 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)); if (strptime(p, "%b %d, %Y", &tm)) |