[libvirt] [PATCH 1/5] virDomainObjListAddLocked: s/false/NULL/ for @oldDef
Michal Privoznik
mprivozn at redhat.com
Thu Apr 23 17:14:54 UTC 2015
It's a pointer after all. We should initialize it to NULL instead of
false.
Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
src/conf/domain_conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 9aad782..ccd3bdf 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -2490,7 +2490,7 @@ virDomainObjListAddLocked(virDomainObjListPtr doms,
char uuidstr[VIR_UUID_STRING_BUFLEN];
if (oldDef)
- *oldDef = false;
+ *oldDef = NULL;
virUUIDFormat(def->uuid, uuidstr);
--
2.0.5
More information about the libvir-list
mailing list