summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-03-01 01:12:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-01 01:12:49 +0000
commit54bb1d3b98075316e0cd1289f218470cb70227ce (patch)
tree538d5b49b366cf6124e6aecee2f12585231c6fcc
parent1a1c42fda7ec6087355529337573dd3ec5e85d91 (diff)
parent4014501d79d060f0855b919ee20fa9db5448cfdf (diff)
downloadsystem_core-54bb1d3b98075316e0cd1289f218470cb70227ce.zip
system_core-54bb1d3b98075316e0cd1289f218470cb70227ce.tar.gz
system_core-54bb1d3b98075316e0cd1289f218470cb70227ce.tar.bz2
Merge "Fix grep -f."
-rw-r--r--toolbox/grep/grep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/toolbox/grep/grep.c b/toolbox/grep/grep.c
index b5bb2ef..5a4fa0c 100644
--- a/toolbox/grep/grep.c
+++ b/toolbox/grep/grep.c
@@ -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);