diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-23 13:57:23 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-23 13:57:23 -0700 |
commit | a8e0d16d85fb2ea53775f64549cac2396cd621a6 (patch) | |
tree | ccf97a33f1fc45501bbe56bedcd24e71783df8e5 /sha1_name.c | |
parent | e702496e434a160f798447b95b9cea3cd138c140 (diff) | |
download | git-a8e0d16d85fb2ea53775f64549cac2396cd621a6.tar.gz |
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 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c index 89b9e3b77a..3f6b77ccfa 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -159,7 +159,7 @@ static int get_short_sha1(const char *name, int len, unsigned char *sha1, if (len < MINIMUM_ABBREV) return -1; - memset(res, 0, 20); + hashclr(res); memset(canonical, 'x', 40); for (i = 0; i < len ;i++) { unsigned char c = name[i]; |