diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 03a3fe207f85b0c754f4e44c448264c42ab3b367..fde9969bed1eb09c549dbedc124a8308a8c9040b 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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) {