mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu: Fix ATTRIBUTE_NONNULL for qemuMonitorAddObject
Commit id fac0dacd
was trying to make things more robust;
however, the ATTRIBUTE_NONNULL(1) would be for the @mon,
not the intended (2) and the @props argument as described
in the commit message.
Found by Coverity build.
Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
728ad0e82b
commit
7406ab691f
@ -824,7 +824,7 @@ int qemuMonitorCreateObjectProps(virJSONValuePtr *propsret,
|
||||
int qemuMonitorAddObject(qemuMonitorPtr mon,
|
||||
virJSONValuePtr *props,
|
||||
char **alias)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorDelObject(qemuMonitorPtr mon,
|
||||
const char *objalias);
|
||||
|
Loading…
Reference in New Issue
Block a user