From: Peter Krempa Date: Thu, 24 Jan 2013 13:02:49 +0000 (+0100) Subject: xen: Actually fix the uninitialized variable X-Git-Tag: v1.0.2-rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db3fd7489542cfe2aeec4dbba40602591c0c9ec;p=thirdparty%2Flibvirt.git xen: Actually fix the uninitialized variable 0eedb1d9bff672b24d6957dfaa0a8b42d9e851a7 fixed the wrong variable --- diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c index 98ea6b4847..b03b7bcb3c 100644 --- a/src/xen/xend_internal.c +++ b/src/xen/xend_internal.c @@ -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)