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>
This commit is contained in:
Peter Krempa 2019-04-11 09:10:39 +02:00
parent 6d45b9974a
commit eed544e131

View File

@ -164,7 +164,7 @@ virQEMUQAPISchemaTraverse(const char *baseName,
query++;
}
return base;
return NULL;
}