1
0
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:
Michal Privoznik 2015-04-23 15:27:32 +02:00
parent f863ac8093
commit c88b796682

View File

@ -2490,7 +2490,7 @@ virDomainObjListAddLocked(virDomainObjListPtr doms,
char uuidstr[VIR_UUID_STRING_BUFLEN];
if (oldDef)
*oldDef = false;
*oldDef = NULL;
virUUIDFormat(def->uuid, uuidstr);