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

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



> > 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


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