aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findutils/grep.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index a051c2f18..3a9c74073 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -181,14 +181,8 @@ static int grep_file(FILE *file)
while (pattern_ptr) {
gl = (grep_list_data_t *)pattern_ptr->data;
if (FGREP_FLAG) {
- found |= strstr(line, gl->pattern) != NULL;
+ found |= (strstr(line, gl->pattern) != NULL);
} else {
- /*
- * test for a postitive-assertion match (regexec returns success (0)
- * and the user did not specify invert search), or a negative-assertion
- * match (regexec returns failure (REG_NOMATCH) and the user specified
- * invert search)
- */
if (!(gl->flg_mem_alocated_compiled & COMPILED)) {
gl->flg_mem_alocated_compiled |= COMPILED;
xregcomp(&(gl->preg), gl->pattern, reflags);