From 3c32f9ec42ad9e221c87454cbf1fe23be97c4d30 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 17 Apr 2019 09:22:05 +0200 Subject: [PATCH] qemu: Fix uninitialized variable It has made Clang very unhappy ever since 6bf7c6769925. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index aac50475ee..0fb90c4049 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -7411,7 +7411,7 @@ static char *qemuConnectDomainXMLToNative(virConnectPtr conn, for (i = 0; i < vm->def->nnets; i++) { virDomainNetDefPtr net = vm->def->nets[i]; unsigned int bootIndex = net->info.bootIndex; - char *model; + char *model = NULL; virMacAddr mac = net->mac; char *script = net->script;