mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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.
This commit is contained in:
parent
da704c8782
commit
8134b37d34
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user