qulogic/gplugin

Rework the way we handle a perl error to make pvs-studio happy.
draft bugfix/pvs-studio-false-positive-v568
2020-05-12, Gary Kramlich
c0a9a277099b
Parents 7c115bc8a536
Children 799bafb54192
Rework the way we handle a perl error to make pvs-studio happy.
--- a/perl/gplugin-perl-loader.c Sat Apr 18 04:24:09 2020 -0500
+++ b/perl/gplugin-perl-loader.c Tue May 12 00:00:05 2020 -0500
@@ -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 {