projects
/
p5sagit/Function-Parameters.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
don't segfault on blead [#83439]
[p5sagit/Function-Parameters.git]
/
Parameters.xs
diff --git
a/Parameters.xs
b/Parameters.xs
index
64099fc
..
e5bbfba
100644
(file)
--- a/
Parameters.xs
+++ b/
Parameters.xs
@@
-1956,7
+1956,9
@@
static int parse_fun(pTHX_ Sentinel sen, OP **pop, const char *keyword_ptr, STRL
body
);
- register_info(aTHX_ PTR2UV(CvROOT(cv)), declarator, spec, param_spec);
+ if (cv) {
+ register_info(aTHX_ PTR2UV(CvROOT(cv)), declarator, spec, param_spec);
+ }
if (saw_name) {
*pop = newOP(OP_NULL, 0);