sbase

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

commit e34ce441928a4670b5e62c0fa8f0f0f7ce631965
parent 6866bcdec8d8fc7c42e18ebc7e0bd350db91e4f0
Author: sin <sin@2f30.org>
Date:   Thu, 20 Nov 2014 14:37:45 +0000

Test directly, no need for intermediate assignment

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

diff --git a/grep.c b/grep.c @@ -153,8 +153,7 @@ grep(FILE *fp, const char *str) continue; } else { match = strstr(buf, pnode->pattern) ? Match : NoMatch; - match ^= vflag; - if (match) + if (match ^ vflag) continue; } switch (mode) {