Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add git-zip-tree
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index 89b9e3b77af068b93e720dc03e71ad189fefb116..3f6b77ccfadab14453a76b6654b50b186c9f5b25 100644
(file)
--- 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];