X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=af6c6fe8a7ed677de84cdbd828e8daae0a6bb12d;hb=8efa5f629efb9a8af48619ee90dee02343e0f19d;hp=a5b6719a1af014497399ea6ff4f1a6f3852a0570;hpb=41d5b7e362c33dc54cbc814e50403a2084204f9f;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index a5b6719a1..af6c6fe8a 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -191,8 +191,6 @@ static int grep_file(struct grep_opt *opt, const char *filename) error("'%s': %s", filename, strerror(errno)); return 0; } - if (!st.st_size) - return 0; /* empty file -- no grep hit */ if (!S_ISREG(st.st_mode)) return 0; sz = xsize_t(st.st_size);