]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Resolve Coverity warning
authorJohn Ferlan <jferlan@redhat.com>
Mon, 22 Jul 2013 20:59:41 +0000 (16:59 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2013 23:04:48 +0000 (19:04 -0400)
commit8134b37d345b8a59cfdc2600675f21c5cf093e7f
tree36011aef2eb0d4ff317f0934eb5aa38a0d6e2cb5
parentda704c8782721cc543f9d230e9933fe12ad25e42
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