提交 b33c33b7 编写于 作者: J Jiri Denemark

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: NJiri Denemark <jdenemar@redhat.com>
上级 d5fbe454
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册