Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cache: clear whole hash buffer with oidclr
[gitweb.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index 08f2b81e1b4a2c1093932dd7224a20c2b12a2860..d5d78d6a51523df3040bab20e4ebae96156ad6fe 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-1029,7
+1029,7
@@
static inline void hashclr(unsigned char *hash)
static inline void oidclr(struct object_id *oid)
{
-
hashclr(oid->hash
);
+
memset(oid->hash, 0, GIT_MAX_RAWSZ
);
}