Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Introduce "base_name_compare()" helper function
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index d381c1d95bec4873bff07c97ebee9c4fc3f3d980..672a1e409760d33ad704cec098af3864f06a3a38 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-37,7
+37,7
@@
void read_line(struct strbuf *sb, FILE *fp, int term) {
break;
strbuf_add(sb, ch);
}
- if (sb->len == 0)
+ if (
ch == EOF &&
sb->len == 0)
sb->eof = 1;
strbuf_end(sb);
}