[gnome-software] trivial: Don't call gs_plugin_loader_run_refine_internal() when the list is empty



commit ac0e0ce96f7938e6e219541af9c563a1154029aa
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jul 15 16:04:13 2016 +0100

    trivial: Don't call gs_plugin_loader_run_refine_internal() when the list is empty

 src/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 066068b..d28aae4 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -452,7 +452,7 @@ gs_plugin_loader_run_refine_internal (GsPluginLoader *plugin_loader,
                                gs_app_list_add (related_list, app);
                        }
                }
-               if (related_list != NULL) {
+               if (gs_app_list_length (related_list) > 0) {
                        ret = gs_plugin_loader_run_refine_internal (plugin_loader,
                                                                    function_name_parent,
                                                                    related_list,


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