diff options
author | roberto <roberto@FreeBSD.org> | 2005-08-25 13:44:02 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2005-08-25 13:44:02 +0000 |
commit | 0123fa77c5b1f98ca96b46527719c729c1724bf9 (patch) | |
tree | 62e95f9f7987fee1aab70e86130455c51c79e6ab /usr.bin | |
parent | e888ea0cd4ec3bed0abae0b058302df17f52d9b8 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/find/function.c | 2 | ||||
-rw-r--r-- | usr.bin/find/getdate.y | 1 |
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; |