diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-18 11:33:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-18 11:33:06 -0700 |
commit | ad87de7c9d191df4fbd5cbcb2f767520201688ae (patch) | |
tree | 2d1f2e8c4d19063adfb7c7f41a4af3a8ee8146b7 /strbuf.c | |
parent | 915838c3cbf5695e754b2826ee5e8fd46b23b0b7 (diff) | |
download | git-ad87de7c9d191df4fbd5cbcb2f767520201688ae.tar.gz git-ad87de7c9d191df4fbd5cbcb2f767520201688ae.tar.xz |
strbuf: allow zero-length lines
They aren't EOF.
Diffstat (limited to 'strbuf.c')
-rw-r--r-- | strbuf.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); } |