diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-02-18 18:52:13 +0000 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-03-17 18:59:26 -0700 |
commit | a9984a4e60291958a7cf0045758f47db3d214040 (patch) | |
tree | 42608eb49e4be32002462b51e86065368b342c05 /src/delta-apply.c | |
parent | fc3c3a2083e9f6f89e6bd53e9420e70d1e357c9b (diff) | |
download | libgit2-a9984a4e60291958a7cf0045758f47db3d214040.tar.gz |
Fix some (digital-mars) compiler warnings
In particular, conditional expressions which contain an
assignment statement, where the expression type is not
explicitly made to be boolean, elicits the following
message:
warning 2: possible unintended assignment
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/delta-apply.c')
-rw-r--r-- | src/delta-apply.c | 2 |
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; |