]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu driver: fix version check typos
authorChris Wright <chrisw@redhat.com>
Wed, 19 May 2010 22:37:26 +0000 (15:37 -0700)
committerJim Meyering <meyering@redhat.com>
Thu, 20 May 2010 19:35:36 +0000 (21:35 +0200)
* 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>
src/qemu/qemu_conf.c

index be146fe8219ba99881d5a24980b96db32f38dd6e..2e117c69bd06b0a89589664f560ffe75d7cfc02b 100644 (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);