Test directly, no need for intermediate assignment

This commit is contained in:
sin 2014-11-20 14:37:45 +00:00
parent 6866bcdec8
commit e34ce44192
1 changed files with 1 additions and 2 deletions

3
grep.c
View File

@ -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) {