[asperl] integrate latest win32 branch
[p5sagit/p5-mst-13.2.git] / regexec.c
index d3b6783..7a0e84a 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -939,7 +939,7 @@ regmatch(regnode *prog)
            n = ARG(scan);  /* which paren pair */
            s = regstartp[n];
            if (*reglastparen < n || !s)
-               break;                  /* Zero length always matches */
+               sayNO;                  /* Do not match unless seen CLOSEn. */
            if (s == regendp[n])
                break;
            /* Inline the first character, for speed. */