]> git.mdlowis.com Git - proto/libregexp.git/commitdiff
fix copy/paste error
authorDavid du Colombier <0intro@gmail.com>
Wed, 17 Dec 2014 21:13:17 +0000 (22:13 +0100)
committerDavid du Colombier <0intro@gmail.com>
Wed, 17 Dec 2014 21:13:17 +0000 (22:13 +0100)
rregexec.c

index 2ce231234f0406123ce62b90b776378706d63a93..8af16b6821c397f9bd897199b40c333e52f95d5f 100644 (file)
@@ -44,7 +44,7 @@ rregexec1(Reprog *progp,      /* program to run */
                        switch(j->starttype) {
                        case RUNE:
                                p = runestrchr(s, j->startchar);
-                               if(p == 0 || p == j->reol)
+                               if(p == 0 || s == j->reol)
                                        return match;
                                s = p;
                                break;