From b33c33b7d56cecb31d6b4a04952add2cb7a5b8b4 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Tue, 20 Oct 2015 10:11:26 +0200 Subject: [PATCH] qemu: Use correct type when calling qemuPrepareNVRAM qemuProcessStart was passing char * migrateFrom as the third argument to qemuPrepareNVRAM. We should explicitly convert the pointer to bool which is what the function expects. Signed-off-by: Jiri Denemark --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index f7444196af..8aa9bb96de 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4428,7 +4428,7 @@ int qemuProcessStart(virConnectPtr conn, * Fill them in prior to setting the domain def as transient. */ VIR_DEBUG("Generating paths"); - if (qemuPrepareNVRAM(cfg, vm, migrateFrom) < 0) + if (qemuPrepareNVRAM(cfg, vm, !!migrateFrom) < 0) goto cleanup; /* Do this upfront, so any part of the startup process can add