[libvirt] [libvirt-designer][PATCH v2 1/4] virtxml: Init variables
Christophe Fergeau
cfergeau at redhat.com
Fri Sep 14 15:35:13 UTC 2012
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 at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120914/aade54c6/attachment-0001.sig>
More information about the libvir-list
mailing list