mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
xen: Initialize variable before using
Commit 87b4c10c6cf02251dd8c29b5b895bebc6ec297f9 added code that may call the virCapabilitiesClearHostNUMACellCPUTopology function with uninitialized second argument. Although the value wouldn't be used some compilers whine about that.
This commit is contained in:
parent
6159710ca1
commit
0eedb1d9bf
@ -1115,7 +1115,7 @@ sexpr_to_xend_topology(const struct sexpr *root,
|
||||
virCapsHostNUMACellCPUPtr cpuInfo = NULL;
|
||||
int cell, cpu, nb_cpus;
|
||||
int n = 0;
|
||||
int numCpus;
|
||||
int numCpus = 0;
|
||||
|
||||
nodeToCpu = sexpr_node(root, "node/node_to_cpu");
|
||||
if (nodeToCpu == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user