diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index beeebef05cee..7052810c5b18 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -818,7 +818,7 @@ f_fstype(PLAN *plan, FTSENT *entry) static int first = 1; struct statfs sb; static int val_type, val_flags; - char *p, save[2]; + char *p, save[2] = {0,0}; if ((plan->flags & F_MTMASK) == F_MTUNKNOWN) return 0; diff --git a/usr.bin/find/getdate.y b/usr.bin/find/getdate.y index b4b15c444e57..de7750c88ff5 100644 --- a/usr.bin/find/getdate.y +++ b/usr.bin/find/getdate.y @@ -857,6 +857,7 @@ get_date(char *p, struct timeb *now) time_t tod; time_t nowtime; + bzero (&gmt, sizeof(struct tm)); yyInput = p; if (now == NULL) { struct tm *gmt_ptr;