]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
VBox: Fix use of uninitialized value
authorJiri Denemark <jdenemar@redhat.com>
Wed, 31 Mar 2010 08:39:48 +0000 (10:39 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 2 Apr 2010 13:59:23 +0000 (15:59 +0200)
src/vbox/vbox_tmpl.c

index 14fdcdaea638a1b1235d831c4eb76bc1717f9507..59ad1b8ad7d4c3ac738d10edbf7d3e8b184c7dec 100644 (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);