]> xenbits.xensource.com Git - libvirt.git/commitdiff
xen: Actually fix the uninitialized variable
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Jan 2013 13:02:49 +0000 (14:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Jan 2013 13:02:49 +0000 (14:02 +0100)
0eedb1d9bff672b24d6957dfaa0a8b42d9e851a7 fixed the wrong variable

src/xen/xend_internal.c

index 98ea6b484788e2c192417af039efc3513b0d3ec6..b03b7bcb3c3390f8ff851d0fc32205b500ff864a 100644 (file)
@@ -1113,9 +1113,9 @@ sexpr_to_xend_topology(const struct sexpr *root,
     const char *nodeToCpu;
     const char *cur;
     virCapsHostNUMACellCPUPtr cpuInfo = NULL;
-    int cell, cpu, nb_cpus;
+    int cell, cpu, nb_cpus = 0;
     int n = 0;
-    int numCpus = 0;
+    int numCpus;
 
     nodeToCpu = sexpr_node(root, "node/node_to_cpu");
     if (nodeToCpu == NULL)