mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: agent: 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
7552031f57
commit
8de1edd5c7
@ -1134,7 +1134,7 @@ qemuAgentMakeCommand(const char *cmdname,
|
|||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
if (virJSONValueObjectCreate(&obj,
|
if (virJSONValueObjectAdd(&obj,
|
||||||
"s:execute", cmdname,
|
"s:execute", cmdname,
|
||||||
"A:arguments", &jargs,
|
"A:arguments", &jargs,
|
||||||
NULL) < 0)
|
NULL) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user