diff options
-rw-r--r-- | findutils/grep.c | 8 |
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) | |||
181 | while (pattern_ptr) { | 181 | while (pattern_ptr) { |
182 | gl = (grep_list_data_t *)pattern_ptr->data; | 182 | gl = (grep_list_data_t *)pattern_ptr->data; |
183 | if (FGREP_FLAG) { | 183 | if (FGREP_FLAG) { |
184 | found |= strstr(line, gl->pattern) != NULL; | 184 | found |= (strstr(line, gl->pattern) != NULL); |
185 | } else { | 185 | } else { |
186 | /* | ||
187 | * test for a postitive-assertion match (regexec returns success (0) | ||
188 | * and the user did not specify invert search), or a negative-assertion | ||
189 | * match (regexec returns failure (REG_NOMATCH) and the user specified | ||
190 | * invert search) | ||
191 | */ | ||
192 | if (!(gl->flg_mem_alocated_compiled & COMPILED)) { | 186 | if (!(gl->flg_mem_alocated_compiled & COMPILED)) { |
193 | gl->flg_mem_alocated_compiled |= COMPILED; | 187 | gl->flg_mem_alocated_compiled |= COMPILED; |
194 | xregcomp(&(gl->preg), gl->pattern, reflags); | 188 | xregcomp(&(gl->preg), gl->pattern, reflags); |