Test directly, no need for intermediate assignment
This commit is contained in:
parent
6866bcdec8
commit
e34ce44192
3
grep.c
3
grep.c
|
@ -153,8 +153,7 @@ grep(FILE *fp, const char *str)
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
match = strstr(buf, pnode->pattern) ? Match : NoMatch;
|
match = strstr(buf, pnode->pattern) ? Match : NoMatch;
|
||||||
match ^= vflag;
|
if (match ^ vflag)
|
||||||
if (match)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user