mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-25 01:37:09 +00:00
Expect standard error code from internal calls
This commit is contained in:
parent
def60ea473
commit
ea57f66b57
@ -493,7 +493,7 @@ int git_smart__download_pack(
|
|||||||
git__free(pkt);
|
git__free(pkt);
|
||||||
} else if (pkt->type == GIT_PKT_DATA) {
|
} else if (pkt->type == GIT_PKT_DATA) {
|
||||||
git_pkt_data *p = (git_pkt_data *) pkt;
|
git_pkt_data *p = (git_pkt_data *) pkt;
|
||||||
if ((error = writepack->add(writepack, p->data, p->len, stats)) != 0)
|
if ((error = writepack->add(writepack, p->data, p->len, stats)) < 0)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
git__free(pkt);
|
git__free(pkt);
|
||||||
|
Loading…
Reference in New Issue
Block a user