提交 19166795 编写于 作者: V Viktor Mihajlovski 提交者: Eric Blake

qemu: Fixed default machine detection in qemuCapsParseMachineTypesStr

The machine in the last output line of <qemu-binary> -M ?
was always reported as default machine even if this wasn't the
actual default. Trivial fix.
Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
上级 ba63d8f7
......@@ -284,7 +284,7 @@ qemuCapsParseMachineTypesStr(const char *output,
goto no_memory;
p = t;
if (!(t = strstr(p, "(default)")) && (!next || t < next))
if ((t = strstr(p, "(default)")) && (!next || t < next))
defIdx = caps->nmachineTypes;
if ((t = strstr(p, "(alias of ")) && (!next || t < next)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册