strbuf: allow zero-length lines

They aren't EOF.
This commit is contained in:
Linus Torvalds 2005-05-18 11:33:06 -07:00
parent 915838c3cb
commit ad87de7c9d

View File

@ -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);
}