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 #if VBOX_API_VERSION == 2002
console->vtbl->PowerDown(console); console->vtbl->PowerDown(console);
#else #else
IProgress *progress; IProgress *progress = NULL;
console->vtbl->PowerDown(console, &progress); console->vtbl->PowerDown(console, &progress);
if (progress) { if (progress) {
progress->vtbl->WaitForCompletion(progress, -1); progress->vtbl->WaitForCompletion(progress, -1);