summaryrefslogtreecommitdiffstats
path: root/sbin/casperd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-12-03 13:28:05 +0000
committerpjd <pjd@FreeBSD.org>2013-12-03 13:28:05 +0000
commit05c04ab2dc87a709507fbace14d1aaffe119cf17 (patch)
tree73761461939ad6782980c84a91da2540ec438ad3 /sbin/casperd
parent56e9c7e3869084c2ff0ad1334ea6b58f9ca64265 (diff)
downloadFreeBSD-src-05c04ab2dc87a709507fbace14d1aaffe119cf17.zip
FreeBSD-src-05c04ab2dc87a709507fbace14d1aaffe119cf17.tar.gz
Initialize cookie before use.
Reported by: Coverity Coverity CID: 1135292
Diffstat (limited to 'sbin/casperd')
-rw-r--r--sbin/casperd/casperd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/casperd/casperd.c b/sbin/casperd/casperd.c
index e918534..d0e6376 100644
--- a/sbin/casperd/casperd.c
+++ b/sbin/casperd/casperd.c
@@ -206,6 +206,7 @@ casper_limit(const nvlist_t *oldlimits, const nvlist_t *newlimits)
int type;
void *cookie;
+ cookie = NULL;
while ((name = nvlist_next(newlimits, &type, &cookie)) != NULL) {
if (type != NV_TYPE_NULL)
return (EINVAL);
OpenPOWER on IntegriCloud