aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2005-08-25 13:44:02 +0000
committerOllivier Robert <roberto@FreeBSD.org>2005-08-25 13:44:02 +0000
commit8a0a76b862df8763ff2b90c633ccb90e4ece6032 (patch)
tree62e95f9f7987fee1aab70e86130455c51c79e6ab
parent7e994955ac7bec8357b94d3aa528234e8315fab7 (diff)
Notes
-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 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;