Expect standard error code from internal calls

This commit is contained in:
Ben Straub 2013-02-06 11:02:29 -08:00
parent def60ea473
commit ea57f66b57

View File

@ -493,7 +493,7 @@ int git_smart__download_pack(
git__free(pkt);
} else if (pkt->type == GIT_PKT_DATA) {
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;
git__free(pkt);