summaryrefslogtreecommitdiff
path: root/diff-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-19 06:34:03 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-19 14:31:23 (GMT)
commit9dc527adbc013b67cd85cce67bdccc3c10ed4792 (patch)
tree7ec4c720ba190e5082ac7f1c809f24bedc0fd3c0 /diff-files.c
parent9b632be30c72f25ac180fa2bf7286505c87e46d2 (diff)
downloadgit-9dc527adbc013b67cd85cce67bdccc3c10ed4792.zip
git-9dc527adbc013b67cd85cce67bdccc3c10ed4792.tar.gz
git-9dc527adbc013b67cd85cce67bdccc3c10ed4792.tar.bz2
[PATCH] fix strbuf take #2
I just remembered why I placed that bogus "sb->len ==0 implies sb->eof" condition there. We need at least something like this to catch the normal EOF (that is, line termination immediately followed by EOF) case. "if (feof(fp))" fires when we have already read the eof, not when we are about read it. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diff-files.c')
0 files changed, 0 insertions, 0 deletions