mirror of https://gitee.com/openkylin/libvirt.git
Fix use of uninitialized variable in QEMU driver
This commit is contained in:
parent
9b6bb0fef6
commit
a7c6ce0d52
|
@ -3407,6 +3407,7 @@ qemuBuildNumaCPUArgStr(char *cpumask, virBufferPtr buf)
|
|||
int i, first, last;
|
||||
int cpuSet = 0;
|
||||
|
||||
first = last = 0;
|
||||
for (i = 0; i < VIR_DOMAIN_CPUMASK_LEN; i++) {
|
||||
if (cpumask[i]) {
|
||||
if (cpuSet) {
|
||||
|
|
Loading…
Reference in New Issue