aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 11:33:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 11:33:06 -0700
commitad87de7c9d191df4fbd5cbcb2f767520201688ae (patch)
tree2d1f2e8c4d19063adfb7c7f41a4af3a8ee8146b7 /strbuf.c
parent915838c3cbf5695e754b2826ee5e8fd46b23b0b7 (diff)
downloadgit-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.c2
1 files changed, 0 insertions, 2 deletions
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);
}