gplugin/gplugin

f02e7e4b875f
Merged in bugfix/pvs-studio-false-positive-v568 (pull request #78)

Ignore a pvs-studio false positive

Approved-by: Elliott Sales de Andrade
--- a/convey.yml Sun May 10 04:15:14 2020 -0400
+++ b/convey.yml Tue May 12 05:21:57 2020 +0000
@@ -209,6 +209,7 @@
- TARGET=pvs-studio
- PVS_STUDIO_USERNAME
- PVS_STUDIO_KEY
+ - PVS_IGNORED_CODES=V568
stages:
- tasks: [import, build-target]
- tasks: [export-target]
--- a/perl/gplugin-perl-loader.c Sun May 10 04:15:14 2020 -0400
+++ b/perl/gplugin-perl-loader.c Tue May 12 05:21:57 2020 +0000
@@ -161,10 +161,8 @@
"%s did not return a value",
func);
} else {
- SV *err = ERRSV;
-
- if(SvTRUE(err)) {
- const gchar *errmsg = SvPVutf8_nolen(err);
+ if(SvTRUE(ERRSV)) {
+ const gchar *errmsg = SvPVutf8_nolen(ERRSV);
g_set_error_literal(error, GPLUGIN_DOMAIN, 0, errmsg);
} else {