Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
apply: release memory for fn_table
[gitweb.git]
/
bundle.c
diff --git
a/bundle.c
b/bundle.c
index 08020bc3a258e055a8f5f6974217cf482edc3ee3..8a1d53ba29a434139123bd7d4e37db47ba8728cb 100644
(file)
--- a/
bundle.c
+++ b/
bundle.c
@@
-31,8
+31,8
@@
static int strbuf_readline_fd(struct strbuf *sb, int fd)
while (1) {
char ch;
ssize_t len = xread(fd, &ch, 1);
- if (len < 0)
- return
-1
;
+ if (len <
=
0)
+ return
len
;
strbuf_addch(sb, ch);
if (ch == '\n')
break;