Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Incremental blame (using JavaScript)
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index a88496030b7053a543173c299bd9f54b923db2ec..f03d11702b3f6212ca7305df60f2f9ea6ca49e35 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-260,7
+260,7
@@
size_t strbuf_fread(struct strbuf *sb, size_t size, FILE *f)
res = fread(sb->buf + sb->len, 1, size, f);
if (res > 0)
strbuf_setlen(sb, sb->len + res);
- else if (
res < 0 &&
oldalloc == 0)
+ else if (oldalloc == 0)
strbuf_release(sb);
return res;
}