gplugin/gplugin

c4aa540655c4
Merged in bugfix/redundant-error-checks (pull request #75)

Remove to redundant null checks on a GError that pvs-studio found.

Approved-by: Richard Laager
Approved-by: Elliott Sales de Andrade
--- a/gplugin/gplugin-manager.c Fri Mar 20 04:44:34 2020 +0000
+++ b/gplugin/gplugin-manager.c Sat Apr 11 10:52:48 2020 +0000
@@ -530,13 +530,11 @@
"loader '%s': %s"),
filename,
G_OBJECT_TYPE_NAME(loader),
- (error) ? error->message : _("Unknown"));
+ error->message);
error_messages =
g_list_prepend(error_messages, error_message);
- if(error)
- g_error_free(error);
-
+ g_error_free(error);
error = NULL;
loader = NULL;