mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 10:57:29 +00:00
delta-apply.c: Use GIT_ENOMEM instead of GIT_ERROR when allocating
git__delta_apply used to return with a generic GIT_ERROR when allocating memory for the delta failed. Fix this to return GIT_ENOMEM.
This commit is contained in:
parent
5c36f6dbe8
commit
21dcb75abd
@ -52,7 +52,7 @@ int git__delta_apply(
|
||||
return GIT_ERROR;
|
||||
|
||||
if ((res_dp = git__malloc(res_sz + 1)) == NULL)
|
||||
return GIT_ERROR;
|
||||
return GIT_ENOMEM;
|
||||
res_dp[res_sz] = '\0';
|
||||
out->data = res_dp;
|
||||
out->len = res_sz;
|
||||
|
Loading…
Reference in New Issue
Block a user