[libvirt PATCH 2/2] testsutilsqemu: check return value of virQEMUCapsNewCopy

Peter Krempa pkrempa at redhat.com
Fri Nov 20 13:54:36 UTC 2020


On Fri, Nov 20, 2020 at 14:46:07 +0100, Ján Tomko wrote:
> While for virQEMUCapsNew this should not be needed
> (the possible failures in VIR_CLASS_NEW are only hit
>  on bad API usage which we don't do here),
> virQEMUCapsNewCopy calls into many other functions,
> some of which actually fail.
> 
> Check the return value of both.
> 
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>  tests/testutilsqemu.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>




More information about the libvir-list mailing list