summaryrefslogtreecommitdiff
path: root/src/grep.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-03-18 13:52:55 +0100
committerPaolo Bonzini <bonzini@gnu.org>2010-03-22 09:52:40 +0100
commit86a79b53be729b2d961dd625b9898518b8867b28 (patch)
tree23cf305a8023e6c2d149ec816a2b371b0da7186b /src/grep.c
parent3a5cff100bb294e3a7008ee7f2d323bac711607f (diff)
downloadgrep-86a79b53be729b2d961dd625b9898518b8867b28.tar.gz
grep: change struct matcher termination
* src/grep.c (setmatcher): Look for NULL matchers[i].name. * src/grep.h (struct matcher): Change name to pointer. Adjust comments. * src/search.c (matchers): Terminate with three NULLs.
Diffstat (limited to 'src/grep.c')
-rw-r--r--src/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grep.c b/src/grep.c
index e41ad508..909c8052 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1589,7 +1589,7 @@ install_matcher (char const *name)
{
int i;
- for (i = 0; matchers[i].compile; i++)
+ for (i = 0; matchers[i].name; i++)
if (strcmp (name, matchers[i].name) == 0)
{
compile = matchers[i].compile;