]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
Convert memset(hash,0,20) to hashclr(hash).
[thirdparty/git.git] / http-push.c
index ebfcc73a9ef7abb20f149ca433c9bd67649854d3..8df7a0d576bfacab5ff61e0b6798cb2718401f5d 100644 (file)
@@ -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;