提交 c80651a5 编写于 作者: C Chris Wright 提交者: Jim Meyering

qemu driver: fix version check typos

* src/qemu/qemu_conf.c (qemudParseHelpStr): Fix errors that made
it impossible to diagnose invalid minor and micro version number
components.
Signed-off-by: NChris Wright <chrisw@redhat.com>
上级 9d0adf24
......@@ -1296,13 +1296,13 @@ int qemudParseHelpStr(const char *qemu,
++p;
minor = virParseNumber(&p);
if (major == -1 || *p != '.')
if (minor == -1 || *p != '.')
goto fail;
++p;
micro = virParseNumber(&p);
if (major == -1)
if (micro == -1)
goto fail;
SKIP_BLANKS(p);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册