Initialize cookie before use.

Reported by:	Coverity
Coverity CID:	1135292
This commit is contained in:
pjd 2013-12-03 13:28:05 +00:00
parent 56e9c7e386
commit 05c04ab2dc

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