]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 20:27:58 +0000 (16:27 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 12:10:13 +0000 (08:10 -0400)
commitd3f0708e84fc5cd422d13cf565d8150212fd727f
tree5c2424cc44ac32ac86eb787ad1c96e3821f898ec
parentf28a31fcc42ec82fc60e409afd7d2f2220ae9d2d
network: Resolve Coverity FORWARD_NULL

If the VIR_STRDUP(exptime,...) fails, then we will jump to cleanup,
no need to check if exptime is set which causes Coverity to issue
a complaint in the virStrToLong_ll call because there wasn't a check
for a NULL value while there was one for the reference right after
the VIR_STRDUP().

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/network/leaseshelper.c