]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-interface: Resolve Coverity issues
authorJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 14:31:15 +0000 (10:31 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 18:18:11 +0000 (14:18 -0400)
commit50210ab9ff9dedb8e957b5f18e2ddb0ced324ac3
tree42718a45e63e3830845f283ffc886a46a9e7bba2
parent0cfd40ac0caf9dbde00de8d75750357ffc6331de
virsh-interface: Resolve Coverity issues

Recent changes uncovered FORWARD_NULL and NEGATIVE_RETURNS problems with
the processing of the 'nActiveIfaces' and 'nInactiveIfaces' and their
associated allocated arrays in 'vshInterfaceListCollect' due to the
possibility of returning -1 in a call and using the return value as a
for loop index end condition.
tools/virsh-interface.c