diff --git a/http-push.c b/http-push.c
index ebfcc73a9ef7abb20f149ca433c9bd67649854d3..8df7a0d576bfacab5ff61e0b6798cb2718401f5d 100644 (file)
--- 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;