From: Chris Wright Date: Wed, 19 May 2010 22:37:26 +0000 (-0700) Subject: qemu driver: fix version check typos X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c80651a5ae612d28909e2d964d24492d0ae33b08;p=libvirt.git 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 --- diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index be146fe821..2e117c69bd 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -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);