[gnome-software] trivial: Fix refining anything with GS_PLUGIN_REFINE_FLAGS_REQUIRE_RELATED set



commit 9d6e2a147a467833f38b819ec54535f56f9b637e
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jun 1 09:44:55 2016 +0100

    trivial: Fix refining anything with GS_PLUGIN_REFINE_FLAGS_REQUIRE_RELATED set

 src/gs-plugin-loader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 2c3a6e3..b932893 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -408,8 +408,8 @@ gs_plugin_loader_run_refine (GsPluginLoader *plugin_loader,
                for (i = 0; i < gs_app_list_length (list); i++) {
                        app = gs_app_list_index (list, i);
                        related = gs_app_get_related (app);
-                       for (i = 0; i < related->len; i++) {
-                               app = g_ptr_array_index (related, i);
+                       for (j = 0; j < related->len; j++) {
+                               app = g_ptr_array_index (related, j);
                                g_debug ("refining related: %s[%s]",
                                         gs_app_get_id (app),
                                         gs_app_get_source_default (app));


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