summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2005-08-25 13:44:02 +0000
committerroberto <roberto@FreeBSD.org>2005-08-25 13:44:02 +0000
commit0123fa77c5b1f98ca96b46527719c729c1724bf9 (patch)
tree62e95f9f7987fee1aab70e86130455c51c79e6ab /usr.bin/find
parente888ea0cd4ec3bed0abae0b058302df17f52d9b8 (diff)
downloadFreeBSD-src-0123fa77c5b1f98ca96b46527719c729c1724bf9.zip
FreeBSD-src-0123fa77c5b1f98ca96b46527719c729c1724bf9.tar.gz
Fixes for gcc4.x.
Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz> PR: bin/84991
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/function.c2
-rw-r--r--usr.bin/find/getdate.y1
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index beeebef..7052810 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 b4b15c4..de7750c 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;
OpenPOWER on IntegriCloud