[PATCH 2/2] xen: Actually fix the uninitialized variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



0eedb1d9bff672b24d6957dfaa0a8b42d9e851a7 fixed the wrong variable
---

Pushed as a build-breaker fix.

 src/xen/xend_internal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c
index 98ea6b4..b03b7bc 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)
-- 
1.8.1.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]