Add another NULL check thanks to Coverity.
Steve Peters [Thu, 13 Apr 2006 15:08:04 +0000 (15:08 +0000)]
p4raw-id: //depot/perl@27791

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... */