]> git.ipfire.org Git - thirdparty/libvirt.git/commit
viralloc: Adjust definition of VIR_FREE() for Coverity
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:15:37 +0000 (09:15 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 22 Jan 2013 17:19:43 +0000 (10:19 -0700)
commitc9a85af319910dfad70bcf311dfe36552f39a37a
tree6767b986f89214281409eef16a24dc7a5408d937
parent23b9502bfc5d61af88a02f5811e89a47361b233a
viralloc: Adjust definition of VIR_FREE() for Coverity

The Coverity static analyzer was generating many false positives for the
unary operation inside the VIR_FREE() definition as it was trying to evaluate
the else portion of the "?:" even though the if portion was (1).

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/viralloc.h