summaryrefslogtreecommitdiff
path: root/src/delta-apply.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/delta-apply.c')
-rw-r--r--src/delta-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta-apply.c b/src/delta-apply.c
index 4852017de..7b592ecfb 100644
--- a/src/delta-apply.c
+++ b/src/delta-apply.c
@@ -47,7 +47,7 @@ int git__delta_apply(
return GIT_ERROR;
res_sz = hdr_sz(&delta, delta_end);
- if (!(res_dp = git__malloc(res_sz + 1)))
+ if ((res_dp = git__malloc(res_sz + 1)) == NULL)
return GIT_ERROR;
res_dp[res_sz] = '\0';
out->data = res_dp;