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

Matthias Bolte matthias.bolte at googlemail.com
Fri Apr 2 13:27:25 UTC 2010


2010/4/2 Jiri Denemark <jdenemar at redhat.com>:
> ---
>  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
>

ACK.

Matthias




More information about the libvir-list mailing list