]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Return failure if log not fopen'd
authorJohn Ferlan <jferlan@redhat.com>
Mon, 2 Apr 2018 11:13:33 +0000 (07:13 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 19 Apr 2018 18:24:12 +0000 (14:24 -0400)
commit713342e9531581183dbf85fffcca4fea1ff80d02
tree3446e442eaddd041d80c2d748ca61ffdc7830a43
parent4f995eab8319b5e9c6636785f37d57d40cb31d2b
tests: Return failure if log not fopen'd

If @log is not fopen'd then, going to cleanup and calling fclose
will make for an unhappy callee. So just fail immediately instead
since there's nothing to clean up.

Found by Coverity

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