Re: [libvirt-designer][PATCH v2 1/4] virtxml: Init variables

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

 



On Thu, Sep 13, 2012 at 04:04:28PM +0200, Michal Privoznik wrote:
> to avoid their uninitialized usage.

ACK, I've sent a similar patch but forgot --subject-prefix for some
reason...
https://www.redhat.com/archives/libvir-list/2012-September/msg00804.html
Let's use yours.

Christophe

> ---
>  examples/virtxml.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/examples/virtxml.c b/examples/virtxml.c
> index 9783ba6..b0c3a77 100644
> --- a/examples/virtxml.c
> +++ b/examples/virtxml.c
> @@ -97,7 +97,7 @@ print_oses(const gchar *option_name,
>             GError **error)
>  {
>      OsinfoDb *db = get_default_osinfo_db();
> -    OsinfoOsList *list;
> +    OsinfoOsList *list = NULL;
>      GList *oses = NULL;
>      GList *os_iter;
>      int ret = EXIT_FAILURE;
> @@ -140,7 +140,7 @@ print_platforms(const gchar *option_name,
>                  GError **error)
>  {
>      OsinfoDb *db = get_default_osinfo_db();
> -    OsinfoPlatformList *list;
> +    OsinfoPlatformList *list = NULL;
>      GList *platforms = NULL;
>      GList *platform_iter;
>      int ret = EXIT_FAILURE;
> -- 
> 1.7.8.6
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: pgp2MTkTwAk9b.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]