Merge branch 'js/mingw-tests'
[gitweb.git] / builtin / grep.c
index 5526fd705657ff80db630ec4f29554893b6c09ad..8c516a95438e5aa997049da24160764ff4ca985c 100644 (file)
@@ -573,7 +573,7 @@ static int file_callback(const struct option *opt, const char *arg, int unset)
        patterns = from_stdin ? stdin : fopen(arg, "r");
        if (!patterns)
                die_errno(_("cannot open '%s'"), arg);
-       while (strbuf_getline(&sb, patterns, '\n') == 0) {
+       while (strbuf_getline(&sb, patterns) == 0) {
                /* ignore empty line like grep does */
                if (sb.len == 0)
                        continue;