Efficiency patchlet for pp_aassign()
[p5sagit/p5-mst-13.2.git] / regexec.c
index 292f960..bed5a99 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -891,7 +891,7 @@ char *prog;
 
                /* If degenerate scan matches "", assume scan done. */
 
-               if (locinput == cc->lastloc) {
+               if (locinput == cc->lastloc && n >= cc->min) {
                    regcc = cc->oldcc;
                    ln = regcc->cur;
                    if (regmatch(cc->next))