[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.18-149-g5dc3af2
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.18-149-g5dc3af2 |
Date: |
Sat, 17 May 2014 05:07:59 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 5dc3af2806d21455b818be3f9da26c372e4a7f8d (commit)
from a6ae68d279b68619cd77c714fb2c5e7fb31096f5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=5dc3af2806d21455b818be3f9da26c372e4a7f8d
commit 5dc3af2806d21455b818be3f9da26c372e4a7f8d
Author: Norihiro Tanaka <address@hidden>
Date: Sat May 17 09:40:38 2014 +0900
grep: do not count newline before the start of buffer
* src/dfa.c (build_state): When checking whether the previous
character was a newline, do not count any newline before the
start of the buffer.
diff --git a/src/dfa.c b/src/dfa.c
index 3c9cb75..8ff29d0 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3396,7 +3396,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;
-----------------------------------------------------------------------
Summary of changes:
src/dfa.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.18-149-g5dc3af2,
Paul Eggert <=