Initialize cookie before use.
Reported by: Coverity Coverity CID: 1135292
This commit is contained in:
parent
fecba05b97
commit
9a2d4197a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258867
@ -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