diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-02-09 13:02:43 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-02-09 13:02:43 +0000 |
commit | b830d90adcb67f8fc6ac32b47bb69d4111334467 (patch) | |
tree | 8a52b952843fdb0211f17b3896a363f23c880740 /usr.sbin/cron | |
parent | 1bfc723633ac914fead0280812c583f51f5df76a (diff) | |
download | FreeBSD-src-b830d90adcb67f8fc6ac32b47bb69d4111334467.zip FreeBSD-src-b830d90adcb67f8fc6ac32b47bb69d4111334467.tar.gz |
Properly initialise the variable `deny'.
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r-- | usr.sbin/cron/lib/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/lib/misc.c b/usr.sbin/cron/lib/misc.c index 89f15e4..5f6b89f 100644 --- a/usr.sbin/cron/lib/misc.c +++ b/usr.sbin/cron/lib/misc.c @@ -415,6 +415,7 @@ allowed(username) isallowed = FALSE; + deny = NULL; #if defined(ALLOW_FILE) && defined(DENY_FILE) if ((allow = fopen(ALLOW_FILE, "r")) == NULL && errno != ENOENT) goto out; @@ -423,7 +424,6 @@ allowed(username) Debug(DMISC, ("allow/deny enabled, %d/%d\n", !!allow, !!deny)) #else allow = NULL; - deny = NULL; #endif if (allow) |