=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/day.c,v retrieving revision 1.24 retrieving revision 1.26 diff -u -r1.24 -r1.26 --- src/usr.bin/calendar/day.c 2013/04/02 04:40:21 1.24 +++ src/usr.bin/calendar/day.c 2013/11/12 19:35:47 1.26 @@ -1,4 +1,4 @@ -/* $OpenBSD: day.c,v 1.24 2013/04/02 04:40:21 deraadt Exp $ */ +/* $OpenBSD: day.c,v 1.26 2013/11/12 19:35:47 deraadt Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -78,7 +78,6 @@ static struct fixs fnmonths[13]; /* full national months names */ static struct fixs nmonths[13]; /* short national month names */ - void setnnames(void) { @@ -191,6 +190,7 @@ len = strlen(date); if (len < 2) return((time_t)-1); + bzero(&tm, sizeof tm); tm.tm_sec = 0; tm.tm_min = 0; /* Avoid getting caught by a timezone shift; set time to noon */ @@ -231,7 +231,7 @@ return(mktime(&tm)); } -void +static void adjust_calendar(int *day, int *month) { switch (calendar) {