From 8a0a76b862df8763ff2b90c633ccb90e4ece6032 Mon Sep 17 00:00:00 2001 From: Ollivier Robert Date: Thu, 25 Aug 2005 13:44:02 +0000 Subject: Fixes for gcc4.x. Submitted by: Divacky Roman PR: bin/84991 --- usr.bin/find/function.c | 2 +- usr.bin/find/getdate.y | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.3