mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virDomainObjListAddLocked: s/false/NULL/ for @oldDef
It's a pointer after all. We should initialize it to NULL instead of false. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f863ac8093
commit
c88b796682
@ -2490,7 +2490,7 @@ virDomainObjListAddLocked(virDomainObjListPtr doms,
|
|||||||
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
||||||
|
|
||||||
if (oldDef)
|
if (oldDef)
|
||||||
*oldDef = false;
|
*oldDef = NULL;
|
||||||
|
|
||||||
virUUIDFormat(def->uuid, uuidstr);
|
virUUIDFormat(def->uuid, uuidstr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user