]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 12:01:44 +0000 (08:01 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 16:52:27 +0000 (12:52 -0400)
commit9ba04deca686d25223e66238d5e308e66c7c8cdf
tree6bc35fce6831c2ccdd3180ddb1f789495690557f
parentbab35f74196be35e1f3801426755a20ec0d7c0a7
domain_conf: Resolve Coverity REVERSE_INULL

In virDomainActualNetDefFormat() a call to virDomainNetGetActualType(def)
was made before a check for (!def) a few lines later. This triggered
Coverity to note the possible NULL deref.  Just moving the initialization
to after the !def checks resolves the issue
src/conf/domain_conf.c