[gnome-software/wip/hughsie/no-global-cache] f-10faa0ed64c84460e83cefcf2b25936fb9f587d4
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/no-global-cache] f-10faa0ed64c84460e83cefcf2b25936fb9f587d4
- Date: Fri, 23 Feb 2018 10:20:24 +0000 (UTC)
commit 85487029ea0092095c8e9e17b90b127258eda6b1
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 23 10:16:45 2018 +0000
f-10faa0ed64c84460e83cefcf2b25936fb9f587d4
plugins/flatpak/gs-flatpak.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 39e39ab1..29988938 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2327,7 +2327,7 @@ gs_flatpak_refine_wildcard (GsFlatpak *self, GsApp *app,
/* find all apps when matching any prefixes */
items = as_store_get_apps_by_id (self->store, id);
for (i = 0; i < items->len; i++) {
- AsApp *item = NULL;
+ AsApp *item = g_ptr_array_index (items, i);
g_autoptr(GsApp) new = NULL;
/* is compatible */
@@ -2338,7 +2338,6 @@ gs_flatpak_refine_wildcard (GsFlatpak *self, GsApp *app,
}
/* does the app have an installation method */
- item = g_ptr_array_index (items, i);
if (as_app_get_bundle_default (item) == NULL) {
g_debug ("not using %s for wildcard as no bundle",
as_app_get_id (item));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]