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