Revert 27869 at Jarkko's request.
Nicholas Clark [Tue, 18 Apr 2006 19:52:19 +0000 (19:52 +0000)]
p4raw-id: //depot/perl@27894

regcomp.c

index d2e99a1..0e53589 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -1733,8 +1733,6 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, I32 *deltap,
                }
                if (code == IFTHEN && num < 2) /* Empty ELSE branch */
                    min1 = 0;
-               if ((flags & (SCF_DO_SUBSTR | SCF_DO_STCLASS)) && !data)
-                   Perl_croak(aTHX_ "panic: null data in study_chunk");
                if (flags & SCF_DO_SUBSTR) {
                    data->pos_min += min1;
                    data->pos_delta += max1 - min1;