aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}