mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuDiskSourceGetProps: Initialize 'ret'
Upcomming patch will convert virJSONValueObjectCreate which didn't check the value of the passed argument to virJSONValueObjectAdd which will and this would lead to crashes. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
dd45aad40a
commit
fdda016bce
@ -1616,7 +1616,7 @@ static virJSONValue *
|
||||
qemuDiskSourceGetProps(virStorageSource *src)
|
||||
{
|
||||
g_autoptr(virJSONValue) props = NULL;
|
||||
virJSONValue *ret;
|
||||
virJSONValue *ret = NULL;
|
||||
|
||||
if (!(props = qemuBlockStorageSourceGetBackendProps(src,
|
||||
QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_LEGACY)))
|
||||
|
Loading…
Reference in New Issue
Block a user