[gnome-software/wip/rancell/reviews] Fix module checking for reviews



commit d4f3d141f1a1d2a5e3b1831679d140be473d85e2
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Feb 5 10:10:25 2016 +1300

    Fix module checking for reviews

 src/gs-plugin-loader.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 6031fbf..f97efe1 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2838,6 +2838,7 @@ gs_plugin_loader_open_plugin (GsPluginLoader *plugin_loader,
        GsPluginGetNameFunc plugin_name = NULL;
        GsPluginGetDepsFunc plugin_deps = NULL;
        GsPlugin *plugin = NULL;
+       gpointer set_review;
 
        module = g_module_open (filename, 0);
        if (module == NULL) {
@@ -2864,7 +2865,7 @@ gs_plugin_loader_open_plugin (GsPluginLoader *plugin_loader,
        /* Check if this plugin can do reviews */
        if (g_module_symbol (module,
                             "gs_plugin_app_set_review",
-                            NULL))
+                            &set_review))
                priv->supports_reviews = TRUE;
 
        /* print what we know */


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