summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoaquim Rocha <jrocha@endlessm.com>2016-07-12 23:47:55 +0100
committerJoaquim Rocha <jrocha@endlessm.com>2016-07-12 23:53:14 +0100
commitd6ffb6a0b67ef59d230a003f3ba5062d66dff740 (patch)
tree64c5c2e3d82aeeaf8fef1a3833dbe2aa761fa7b5
parent6c737a36ec208f3f214365e2058b1a0707b8ffa6 (diff)
downloadappstream-glib-d6ffb6a0b67ef59d230a003f3ba5062d66dff740.tar.gz
Fix missing keywords in the previous commit
While cleaning up some cosmetic issues I managed to exclude some important parts of the changes...
-rw-r--r--libappstream-glib/as-app-desktop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-app-desktop.c b/libappstream-glib/as-app-desktop.c
index f2133b5..339445e 100644
--- a/libappstream-glib/as-app-desktop.c
+++ b/libappstream-glib/as-app-desktop.c
@@ -349,12 +349,12 @@ as_app_parse_file_key (AsApp *app,
/* Add any external attribute as metadata to the application */
if (g_str_has_prefix (key, "X-")) {
- g_autofree value = NULL;
+ g_autofree char *value = NULL;
value = g_key_file_get_string (kf,
G_KEY_FILE_DESKTOP_GROUP,
key,
NULL);
- as_app_add_metadata (key, value);
+ as_app_add_metadata (app, key, value);
}
return TRUE;