From c88b79668223037646b19ec79f7a087daf32f248 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 23 Apr 2015 15:27:32 +0200 Subject: [PATCH] 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 --- 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 9aad782f1..ccd3bdf64 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.39.5