summaryrefslogtreecommitdiff
path: root/src/grep.c
diff options
context:
space:
mode:
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;