sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit c68bba6867a1898bea65f8fb411ed328c226adca
parent c2c5ea9c60f41bcda89782228cbd8b590923cbba
Author: Connor Lane Smith <cls@lubutu.com>
Date:   Sat,  9 Jun 2012 18:49:02 +0100

grep: fix ARGC()
Diffstat:
grep.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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;