提交 eed544e1 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 6d45b997
......@@ -164,7 +164,7 @@ virQEMUQAPISchemaTraverse(const char *baseName,
query++;
}
return base;
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册