diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
| commit | 3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch) | |
| tree | 1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/delta-apply.c | |
| parent | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff) | |
| download | libgit2-3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e.tar.gz | |
Remove old and unused error codes
Diffstat (limited to 'src/delta-apply.c')
| -rw-r--r-- | src/delta-apply.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/delta-apply.c b/src/delta-apply.c index c8c662fa8..d3be084e0 100644 --- a/src/delta-apply.c +++ b/src/delta-apply.c @@ -61,8 +61,9 @@ int git__delta_apply( return -1; } - if ((res_dp = git__malloc(res_sz + 1)) == NULL) - return GIT_ENOMEM; + res_dp = git__malloc(res_sz + 1); + GITERR_CHECK_ALLOC(res_dp); + res_dp[res_sz] = '\0'; out->data = res_dp; out->len = res_sz; |
