mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
grep: delete obsolete comment
This commit is contained in:
parent
04ea11b033
commit
ac074b3f87
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user