diff --git a/pp_hot.c b/pp_hot.c index 79c9c458c404..d7de38a8e0e6 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -1447,14 +1447,11 @@ PP(pp_match) if (!mg) { mg = sv_magicext_mglob(TARG); } - assert(RX_OFFS(rx)[0].start != -1); /* XXX get rid of next line? */ - if (RX_OFFS(rx)[0].start != -1) { - mg->mg_len = RX_OFFS(rx)[0].end; - if (RX_ZERO_LEN(rx)) - mg->mg_flags |= MGf_MINMATCH; - else - mg->mg_flags &= ~MGf_MINMATCH; - } + mg->mg_len = RX_OFFS(rx)[0].end; + if (RX_ZERO_LEN(rx)) + mg->mg_flags |= MGf_MINMATCH; + else + mg->mg_flags &= ~MGf_MINMATCH; } if ((!RX_NPARENS(rx) && !global) || gimme != G_ARRAY) {