We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39dbc62 commit cb252c2Copy full SHA for cb252c2
src/pl/plperl/plperl.c
@@ -874,7 +874,7 @@ plperl_trusted_init(void)
874
if (!isGV_with_GP(sv) || !GvCV(sv))
875
continue;
876
SvREFCNT_dec(GvCV(sv)); /* free the CV */
877
- GvCV(sv) = NULL; /* prevent call via GV */
+ GvCV_set(sv, NULL); /* prevent call via GV */
878
}
879
hv_clear(stash);
880
src/pl/plperl/plperl.h
@@ -42,6 +42,11 @@
42
#undef bool
43
#endif
44
45
+/* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
46
+#ifndef GvCV_set
47
+#define GvCV_set(gv, cv) (GvCV(gv) = cv)
48
+#endif
49
+
50
/* declare routines from plperl.c for access by .xs files */
51
HV *plperl_spi_exec(char *, int);
52
void plperl_return_next(SV *);
0 commit comments