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

Jiri Denemark jdenemar at redhat.com
Fri Apr 2 14:01:08 UTC 2010


> > 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);
> 
> ACK.

Thanks, I pushed the fix.

Jirka




More information about the libvir-list mailing list