commit e34ce441928a4670b5e62c0fa8f0f0f7ce631965 Author: sin <[email protected]> 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
@@ -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) {
