aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-05-20 21:49:48 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-05-20 21:49:48 +0300
commitca8646e523f70435bccf5e582db8e54f87a07012 (patch)
treea7c5b9c20c678014e87341925ec52e4b8f412da1
parent9e5b2c4106be2d9aaf98730a03e75d313cfa2e80 (diff)
downloadegawk-ca8646e523f70435bccf5e582db8e54f87a07012.tar.gz
egawk-ca8646e523f70435bccf5e582db8e54f87a07012.tar.bz2
egawk-ca8646e523f70435bccf5e582db8e54f87a07012.zip
Sync with GNU grep.
-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;