Merge "Fix grep -f."
This commit is contained in:
commit
54bb1d3b98
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