[gnome-software/gnome-3-20] Fix a crash when building xdg-app frameworks



commit 0d19d50c22c86d629c20ad04f3e0dc14d2b4843e
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 23 11:13:12 2016 +0000

    Fix a crash when building xdg-app frameworks
    
    No idea why this hasn't exploded before, but it's clearly bogus.

 src/plugins/gs-appstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 5695d86..1cc68f2 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -303,7 +303,7 @@ gs_appstream_create_runtime (GsApp *parent, const gchar *runtime)
        source = g_strdup_printf ("runtime/%s", runtime);
        gs_app_add_source (app, source);
        gs_app_set_kind (app, AS_APP_KIND_RUNTIME);
-       gs_app_set_version (app, id_split[2]);
+       gs_app_set_version (app, runtime_split[2]);
 
        return g_steal_pointer (&app);
 }


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