mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
VBox: Fix use of uninitialized value
This commit is contained in:
parent
4ee2b31804
commit
f76c3493d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user