]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: silence coverity false positives
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 22:02:48 +0000 (16:02 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 22:39:01 +0000 (16:39 -0600)
commit0634b6233608dba940f4e68e5fa033400b4b844a
tree15badf15fc2ccffb865bcd3c32131efbdb85c6e5
parent8d0be8fd5773128603669a8c13bfd93c83b3712e
rpc: silence coverity false positives

In virNetServerNew, Coverity didn't realize that srv->mdsnGroupName
can only be non-NULL if mdsnGroupName was non-NULL.

In virNetServerRun, Coverity didn't realize that the array is non-NULL
if the array count is non-zero.

* src/rpc/virnetserver.c (virNetServerNew): Use alternate pointer.
(virNetServerRun): Give coverity a hint.
src/rpc/virnetserver.c