svn commit: r258867 - head/sbin/casperd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Dec 3 13:28:06 UTC 2013
Author: pjd
Date: Tue Dec 3 13:28:05 2013
New Revision: 258867
URL: http://svnweb.freebsd.org/changeset/base/258867
Log:
Initialize cookie before use.
Reported by: Coverity
Coverity CID: 1135292
Modified:
head/sbin/casperd/casperd.c
Modified: head/sbin/casperd/casperd.c
==============================================================================
--- head/sbin/casperd/casperd.c Tue Dec 3 13:26:37 2013 (r258866)
+++ head/sbin/casperd/casperd.c Tue Dec 3 13:28:05 2013 (r258867)
@@ -206,6 +206,7 @@ casper_limit(const nvlist_t *oldlimits,
int type;
void *cookie;
+ cookie = NULL;
while ((name = nvlist_next(newlimits, &type, &cookie)) != NULL) {
if (type != NV_TYPE_NULL)
return (EINVAL);
More information about the svn-src-all
mailing list