From 6d03097512dc6cd7992b824d96b90cfa5dd308cc Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 12 Dec 2018 13:36:17 +0000 Subject: [PATCH] lib: Fix handling of X-Flatpak-RenamedFrom desktop file keys A variable was being initialised self-referentially, which broke handling of the X-Flatpak-RenamedFrom key. Signed-off-by: Philip Withnall https://phabricator.endlessm.com/T24004 --- libeos-parental-controls/app-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeos-parental-controls/app-filter.c b/libeos-parental-controls/app-filter.c index e2f686e..e4e6849 100644 --- a/libeos-parental-controls/app-filter.c +++ b/libeos-parental-controls/app-filter.c @@ -303,7 +303,7 @@ epc_app_filter_is_appinfo_allowed (EpcAppFilter *filter, for (gsize i = 0; old_flatpak_apps[i] != NULL; i++) { - gchar *old_flatpak_app = g_strstrip (old_flatpak_app); + gchar *old_flatpak_app = g_strstrip (old_flatpak_apps[i]); if (g_str_has_suffix (old_flatpak_app, ".desktop")) old_flatpak_app[strlen (old_flatpak_app) - strlen (".desktop")] = '\0';