1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

xen: Actually fix the uninitialized variable

0eedb1d9bff672b24d6957dfaa0a8b42d9e851a7 fixed the wrong variable
This commit is contained in:
Peter Krempa 2013-01-24 14:02:49 +01:00
parent 0eedb1d9bf
commit 4db3fd7489

View 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)