commit | 7bc97484201a024ecc2921e13b0f2983c116f32a | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Mar 01 01:24:37 2014 +0000 |
committer | Android Git Automerger <android-git-automerger@android.com> | Sat Mar 01 01:24:37 2014 +0000 |
tree | c7b6f24030048321b045d4176fb5d558be80d0f8 | |
parent | 7ec0e122d94c00b76cf0d5c213170eff8999e7a2 [diff] | |
parent | 1f57081216a2eae81672dadd67c94476b27fbf63 [diff] |
am 1f570812: am d262b2a8: am 54bb1d3b: Merge "Fix grep -f." * commit '1f57081216a2eae81672dadd67c94476b27fbf63': Fix grep -f.
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 @@ 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);