[hackers] [sbase] Test directly, no need for intermediate assignment || sin
commit e34ce441928a4670b5e62c0fa8f0f0f7ce631965
Author: sin <sin_AT_2f30.org>
Date: Thu Nov 20 14:37:45 2014 +0000
Test directly, no need for intermediate assignment
diff --git a/grep.c b/grep.c
index d147642..3dbf9b8 100644
--- a/grep.c
+++ b/grep.c
_AT_@ -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) {
Received on Thu Nov 20 2014 - 15:38:04 CET
This archive was generated by hypermail 2.3.0
: Thu Nov 20 2014 - 15:48:09 CET