From: Linus Torvalds Date: Wed, 18 May 2005 18:33:06 +0000 (-0700) Subject: strbuf: allow zero-length lines X-Git-Tag: v0.99~555 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ad87de7c9d191df4fbd5cbcb2f767520201688ae;p=git-core%2Fgit.git strbuf: allow zero-length lines They aren't EOF. --- diff --git a/strbuf.c b/strbuf.c index d381c1d95..654330849 100644 --- a/strbuf.c +++ b/strbuf.c @@ -37,8 +37,6 @@ void read_line(struct strbuf *sb, FILE *fp, int term) { break; strbuf_add(sb, ch); } - if (sb->len == 0) - sb->eof = 1; strbuf_end(sb); }