aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dfa.c b/dfa.c
index c959ad4f..18f8faf1 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3478,7 +3478,7 @@ dfaexec (struct dfa *d, char const *begin, char *end,
/* If the previous character was a newline, count it, and skip
checking of multibyte character boundary until here. */
- if (p[-1] == eol)
+ if (p[-1] == eol && (char *) p != begin)
{
nlcount++;
mbp = p;