strbuf: allow zero-length lines
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:06 +0000 (11:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:06 +0000 (11:33 -0700)
They aren't EOF.

strbuf.c

index d381c1d95bec4873bff07c97ebee9c4fc3f3d980..654330849c3f5d1502d0116c71595b9fa4613186 100644 (file)
--- 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);
 }