From a7c6ce0d52b796d6da822c88a8c46b4f211442db Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 18 Nov 2011 16:09:35 +0000 Subject: [PATCH] Fix use of uninitialized variable in QEMU driver --- src/qemu/qemu_command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 03a3fe207f..fde9969bed 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) { -- GitLab