Skip to content

Commit

Permalink
assert() PL_parser before trying to dereference it
Browse files Browse the repository at this point in the history
  • Loading branch information
leonerd committed Mar 7, 2022
1 parent 931014b commit 11e786a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions op.c
Expand Up @@ -9523,6 +9523,7 @@ Perl_newSTATEOP(pTHX_ I32 flags, char *label, OP *o)
const U32 utf8 = flags & SVf_UTF8;
COP *cop;

assert(PL_parser);
PL_parser->parsed_sub = 0;

flags &= ~SVf_UTF8;
Expand Down

0 comments on commit 11e786a

Please sign in to comment.