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

VBox: Fix use of uninitialized value

上级 4ee2b318
......@@ -1570,7 +1570,7 @@ static int vboxDomainDestroy(virDomainPtr dom) {
#if VBOX_API_VERSION == 2002
console->vtbl->PowerDown(console);
#else
IProgress *progress;
IProgress *progress = NULL;
console->vtbl->PowerDown(console, &progress);
if (progress) {
progress->vtbl->WaitForCompletion(progress, -1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册