]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virstring: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 20:37:11 +0000 (16:37 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 12:10:13 +0000 (08:10 -0400)
commit114ebecd98a93c2a751f53dc63716a7564c71b11
tree97ccdcf8f05237ceb1fffbb01e721b4ace11f13b
parentd3f0708e84fc5cd422d13cf565d8150212fd727f
virstring: Resolve Coverity FORWARD_NULL

Perhaps a false positive, but since Coverity doesn't understand the
relationship between the 'count' and the 'strings', rather than leave
the chance the on input 'strings' is NULL and causes a deref - just
check for it and return

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