From c68bba6867a1898bea65f8fb411ed328c226adca Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Sat, 9 Jun 2012 18:49:02 +0100 Subject: [PATCH] grep: fix ARGC() --- grep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grep.c b/grep.c index 22fb48d..9716328 100644 --- a/grep.c +++ b/grep.c @@ -21,7 +21,6 @@ static char mode = 0; int main(int argc, char *argv[]) { - char c; int i, n, flags = REG_NOSUB; regex_t preg; FILE *fp; @@ -34,7 +33,7 @@ main(int argc, char *argv[]) case 'l': case 'n': case 'q': - mode = c; + mode = ARGC(); break; case 'i': flags |= REG_ICASE;