* commit 'd262b2a886a5674fe428ecbfd3a10dfc5efe8e85': Fix grep -f.
This commit is contained in:
commit
1f57081216
1 changed files with 0 additions and 2 deletions
|
@ -294,10 +294,8 @@ read_patterns(const char *fn)
|
|||
err(2, "%s", fn);
|
||||
line = NULL;
|
||||
len = 0;
|
||||
#ifndef ANDROID
|
||||
while ((rlen = getline(&line, &len, f)) != -1)
|
||||
add_pattern(line, *line == '\n' ? 0 : (size_t)rlen);
|
||||
#endif
|
||||
free(line);
|
||||
if (ferror(f))
|
||||
err(2, "%s", fn);
|
||||
|
|
Loading…
Reference in a new issue