Initialize cookie before use.
Reported by: Coverity Coverity CID: 1135292
This commit is contained in:
parent
56e9c7e386
commit
05c04ab2dc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user