aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--dfa.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3423073a..f93f9066 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-05-20 Arnold D. Robbins <arnold@skeeve.com>
+
+ * dfa.c (dfaexec): Minor sync with GNU grep.
+
2014-05-14 Arnold D. Robbins <arnold@skeeve.com>
* custom.h (_GL_PURE): Move definition to here. Sigh.
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;