[gnome-software] trivial: Fix a tiny GCC warning in the snap plugin



commit 1d42370ccbb735947af3225189d39d2507a8e46f
Author: Richard Hughes <richard hughsie com>
Date:   Fri Aug 19 14:29:46 2016 +0100

    trivial: Fix a tiny GCC warning in the snap plugin

 src/plugins/gs-plugin-snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index ee60f85..ae2387b 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -271,7 +271,7 @@ get_apps (GsPlugin *plugin,
        /* Get all the apps */
        query_fields = g_ptr_array_new_with_free_func (g_free);
        if (sources != NULL) {
-               g_autofree gchar *escaped;
+               g_autofree gchar *escaped = NULL;
                escaped = soup_uri_encode (sources, NULL);
                g_ptr_array_add (query_fields, g_strdup_printf ("sources=%s", escaped));
        }


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