[libvirt] [PATCH 04/21] qemu: qapi: Fix return value of impossible case in virQEMUQAPISchemaTraverse

Ján Tomko jtomko at redhat.com
Tue Apr 16 14:47:51 UTC 2019


On Mon, Apr 15, 2019 at 06:01:57PM +0200, Peter Krempa wrote:
>The return statement after the infinite loop without a break is there to
>appease the compiler. Make it return NULL as it would be a failure if
>control flow reaches that point.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_qapi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

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


More information about the libvir-list mailing list