mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemublocktest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
virJSONValueObjectAdd now works identically to virJSONValueObjectCreate when used with a NULL argument. Replace all callers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
acf6b4e83c
commit
8049041720
@ -98,7 +98,7 @@ testBackingXMLjsonXML(const void *args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virJSONValueObjectCreate(&wrapper, "a:file", &backendprops, NULL) < 0)
|
if (virJSONValueObjectAdd(&wrapper, "a:file", &backendprops, NULL) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!(propsstr = virJSONValueToString(wrapper, false)))
|
if (!(propsstr = virJSONValueToString(wrapper, false)))
|
||||||
|
Loading…
Reference in New Issue
Block a user