mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(lockspace->resources = virHashNew(virLockSpaceResourceDataFree)))
|
lockspace->resources = virHashNew(virLockSpaceResourceDataFree);
|
||||||
goto error;
|
|
||||||
|
|
||||||
if (virJSONValueObjectHasKey(object, "directory")) {
|
if (virJSONValueObjectHasKey(object, "directory")) {
|
||||||
const char *dir = virJSONValueObjectGetString(object, "directory");
|
const char *dir = virJSONValueObjectGetString(object, "directory");
|
||||||
|
Loading…
Reference in New Issue
Block a user