summaryrefslogtreecommitdiff
path: root/builtin-update-ref.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 /builtin-update-ref.c
parente702496e434a160f798447b95b9cea3cd138c140 (diff)
downloadgit-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 'builtin-update-ref.c')
-rw-r--r--builtin-update-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-update-ref.c b/builtin-update-ref.c
index 5bd71825fd..90a3da53ad 100644
--- a/builtin-update-ref.c
+++ b/builtin-update-ref.c
@@ -44,7 +44,7 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
if (get_sha1(value, sha1))
die("%s: not a valid SHA1", value);
- memset(oldsha1, 0, 20);
+ hashclr(oldsha1);
if (oldval && get_sha1(oldval, oldsha1))
die("%s: not a valid old SHA1", oldval);