[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] VBox: Fix use of uninitialized value



---
 src/vbox/vbox_tmpl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
index 14fdcda..59ad1b8 100644
--- a/src/vbox/vbox_tmpl.c
+++ b/src/vbox/vbox_tmpl.c
@@ -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);
-- 
1.7.0.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]