From eed544e131cbfb93123625dc5cb7164762896cd4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 11 Apr 2019 09:10:39 +0200 Subject: [PATCH] qemu: qapi: Fix return value of impossible case in virQEMUQAPISchemaTraverse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/qemu/qemu_qapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_qapi.c b/src/qemu/qemu_qapi.c index 90df50ec77..de663d4408 100644 --- a/src/qemu/qemu_qapi.c +++ b/src/qemu/qemu_qapi.c @@ -164,7 +164,7 @@ virQEMUQAPISchemaTraverse(const char *baseName, query++; } - return base; + return NULL; } -- GitLab