From 8134b37d345b8a59cfdc2600675f21c5cf093e7f Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 22 Jul 2013 16:59:41 -0400 Subject: [PATCH] lxc: Resolve Coverity warning Commit 'c8695053' resulted in the following: Coverity error seen in the output: ERROR: REVERSE_INULL FUNCTION: lxcProcessAutoDestroy Due to the 'dom' being checked before 'dom->persistent' since 'dom' is already dereferenced prior to that. --- src/lxc/lxc_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 02ac5d44d4..06ead9fafd 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -75,7 +75,7 @@ lxcProcessAutoDestroy(virDomainObjPtr dom, VIR_DOMAIN_EVENT_STOPPED_DESTROYED); priv->doneStopEvent = true; - if (dom && !dom->persistent) { + if (!dom->persistent) { virDomainObjListRemove(driver->domains, dom); dom = NULL; } -- 2.47.2