gplugin/gplugin

use g_error_set_literal when we're not passing a format string
bugfix/pvs-studio-g-set-error-fix
2019-09-29, Gary Kramlich
34f15d594176
Parents dd84d241b885
Children f8d399dcb6a0
use g_error_set_literal when we're not passing a format string
--- a/gplugin/gplugin-manager.c Mon Sep 30 03:46:51 2019 +0000
+++ b/gplugin/gplugin-manager.c Sun Sep 29 23:23:18 2019 -0500
@@ -849,8 +849,8 @@
loader = gplugin_plugin_get_loader(plugin);
if(!GPLUGIN_IS_LOADER(loader)) {
- g_set_error(error, GPLUGIN_DOMAIN, 0,
- _("Plugin loader is not a loader"));
+ g_set_error_literal(error, GPLUGIN_DOMAIN, 0,
+ _("Plugin loader is not a loader"));
return FALSE;
}