mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virLockSpaceNewPostExecRestart: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
0c99ef5b05
commit
a16e4dd751
@ -293,8 +293,7 @@ virLockSpace *virLockSpaceNewPostExecRestart(virJSONValue *object)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!(lockspace->resources = virHashNew(virLockSpaceResourceDataFree)))
|
||||
goto error;
|
||||
lockspace->resources = virHashNew(virLockSpaceResourceDataFree);
|
||||
|
||||
if (virJSONValueObjectHasKey(object, "directory")) {
|
||||
const char *dir = virJSONValueObjectGetString(object, "directory");
|
||||
|
Loading…
Reference in New Issue
Block a user