From: Michal Privoznik Date: Thu, 23 Apr 2015 13:27:32 +0000 (+0200) Subject: virDomainObjListAddLocked: s/false/NULL/ for @oldDef X-Git-Tag: v1.2.15-rc1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c88b79668223037646b19ec79f7a087daf32f248;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9aad782f19..ccd3bdf64a 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);