[gnome-software] appstream: trivial: Fix a compiler warning



commit c6a23484f87725f290ec27ce259d1f9d05037033
Author: Kalev Lember <klember redhat com>
Date:   Wed Sep 25 13:09:47 2019 +0200

    appstream: trivial: Fix a compiler warning

 plugins/core/gs-appstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index cd3be529..7647157e 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -932,7 +932,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
                } else {
 
                        g_autoptr(GString) xpath = g_string_new (NULL);
-                       g_autofree gchar *language;
+                       g_autofree gchar *language = NULL;
 
                        xb_string_append_union (xpath, "languages/lang[text()='%s'][@percentage>50]", tmp);
 


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