VBox: Fix use of uninitialized value

This commit is contained in:
Jiri Denemark 2010-03-31 10:39:48 +02:00
parent 4ee2b31804
commit f76c3493d8

View File

@ -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);