Initialize cookie before use.

Reported by:	Coverity
Coverity CID:	1135292
This commit is contained in:
Pawel Jakub Dawidek 2013-12-03 13:28:05 +00:00
parent fecba05b97
commit 9a2d4197a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258867

View File

@ -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);