aboutsummaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-23 13:57:23 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-23 13:57:23 -0700
commita8e0d16d85fb2ea53775f64549cac2396cd621a6 (patch)
treeccf97a33f1fc45501bbe56bedcd24e71783df8e5 /http-push.c
parente702496e434a160f798447b95b9cea3cd138c140 (diff)
downloadgit-a8e0d16d85fb2ea53775f64549cac2396cd621a6.tar.gz
git-a8e0d16d85fb2ea53775f64549cac2396cd621a6.tar.xz
Convert memset(hash,0,20) to hashclr(hash).
In the same spirit as hashcmp() and hashcpy(). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index ebfcc73a9..8df7a0d57 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2164,7 +2164,7 @@ static void fetch_symref(const char *path, char **symref, unsigned char *sha1)
if (*symref != NULL)
free(*symref);
*symref = NULL;
- memset(sha1, 0, 20);
+ hashclr(sha1);
if (buffer.posn == 0)
return;