1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

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: Chris Wright <chrisw@redhat.com>
This commit is contained in:
Chris Wright 2010-05-19 15:37:26 -07:00 committed by Jim Meyering
parent 9d0adf2498
commit c80651a5ae

View File

@ -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);