]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: qapi: Fix return value of impossible case in virQEMUQAPISchemaTraverse
authorPeter Krempa <pkrempa@redhat.com>
Thu, 11 Apr 2019 07:10:39 +0000 (09:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 May 2019 07:46:06 +0000 (09:46 +0200)
commiteed544e131cbfb93123625dc5cb7164762896cd4
treeb77fab7ae06fa7e270983d1da5449ce1834f5ed8
parent6d45b9974aeb6252aeedf6271f239f7189ba472b
qemu: qapi: Fix return value of impossible case in virQEMUQAPISchemaTraverse

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_qapi.c