]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Need to check return of virGetLastError
authorJohn Ferlan <jferlan@redhat.com>
Mon, 18 Jul 2016 18:25:43 +0000 (14:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 19 Jul 2016 11:51:10 +0000 (07:51 -0400)
commit5ddaa7ef2d8fd78b95f4d6595f972c6462eaafd3
tree7ad7ac6d6fe7db09084384fc8f8bdab517ae067b
parentdfb18b0afbb040a496ddce1f224176a97f8a5667
tests: Need to check return of virGetLastError

Cannot assume virGetLastError returns non-NULL value - modify the code to
fetch err and check if err && err->code

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
tests/qemuhelptest.c