[gnome-software] trivial: gs_plugin_loader_open_plugin should not return a value



commit d19703e5e81d1fb709bdcafff2c9d28937a9f9e0
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Thu Apr 21 17:10:39 2016 +0100

    trivial: gs_plugin_loader_open_plugin should not return a value
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765377
    Signed-off-by: Richard Hughes <richard hughsie com>

 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 ca72920..1dbc0f5 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3140,7 +3140,7 @@ gs_plugin_loader_open_plugin (GsPluginLoader *plugin_loader,
        plugin = gs_plugin_create (filename, &error);
        if (plugin == NULL) {
                g_warning ("Failed to load %s: %s", filename, error->message);
-               return NULL;
+               return;
        }
        plugin->status_update_fn = gs_plugin_loader_status_update_cb;
        plugin->status_update_user_data = plugin_loader;


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