mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 22:03:58 +00:00
gitfo_read: fix read-loop
Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
parent
24bd5e556b
commit
28f7869dee
@ -90,10 +90,8 @@ int gitfo_read(git_file fd, void *buf, size_t cnt)
|
||||
continue;
|
||||
return git__throw(GIT_EOSERR, "Failed to read from file");
|
||||
}
|
||||
if (!r) {
|
||||
errno = EPIPE;
|
||||
return git__throw(GIT_EOSERR, "Failed to read from file");
|
||||
}
|
||||
if (!r)
|
||||
break;
|
||||
cnt -= r;
|
||||
b += r;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user