[libvirt] [PATCH 3/7] tests: Return failure if log not fopen'd

Peter Krempa pkrempa at redhat.com
Wed Apr 18 07:09:52 UTC 2018


On Tue, Apr 17, 2018 at 12:22:14 -0400, John Ferlan wrote:
> If @log is not fopen'd then, going to cleanup and calling fclose
> will make for an unhappy caller. So just fail immediately instead

s/caller/callee/

> since there's nothing to clean up.
> 
> Found by Coverity
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  tests/commandhelper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180418/63c2c326/attachment-0001.sig>


More information about the libvir-list mailing list