/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert memset(hash,0,20) to hashclr(hash).
[git/git.git]
/
builtin-update-ref.c
diff --git
a/builtin-update-ref.c
b/builtin-update-ref.c
index
5bd7182
..
90a3da5
100644
(file)
--- 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);