This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
080ac85
)
Add another NULL check thanks to Coverity.
author
Steve Peters
<steve@fisharerojo.org>
Thu, 13 Apr 2006 15:08:04 +0000
(15:08 +0000)
committer
Steve Peters
<steve@fisharerojo.org>
Thu, 13 Apr 2006 15:08:04 +0000
(15:08 +0000)
p4raw-id: //depot/perl@27791
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
284fe7e
..
4aa27f8
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-3524,7
+3524,7
@@
S_regmatch(pTHX_ regexp *rex, regnode *prog)
/* No need to save/restore up to this paren */
I32 parenfloor = scan->flags;
- if (
OP(PREVOPER(next)) == NOTHING
) /* LONGJMP */
+ if (
next && (OP(PREVOPER(next)) == NOTHING)
) /* LONGJMP */
next += ARG(next);
/* XXXX Probably it is better to teach regpush to support
parenfloor > PL_regsize... */