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:
parent
9d0adf2498
commit
c80651a5ae
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user