diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2010-03-18 13:52:55 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2010-03-22 09:52:40 +0100 |
commit | 86a79b53be729b2d961dd625b9898518b8867b28 (patch) | |
tree | 23cf305a8023e6c2d149ec816a2b371b0da7186b /src/grep.c | |
parent | 3a5cff100bb294e3a7008ee7f2d323bac711607f (diff) | |
download | grep-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |