summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-08-26 01:06:22 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-26 01:06:22 -0700
commita7f051987c5f020e60da1e5d6ddefc3d443d3299 (patch)
treead35bcb194fce5509db30e12b499920b01ccc930 /refs.c
parentgitweb: git_annotate didn't expect negative numeric timezone (diff)
parentConvert memset(hash,0,20) to hashclr(hash). (diff)
downloadtgif-a7f051987c5f020e60da1e5d6ddefc3d443d3299.tar.xz
Merge branch 'gl/cleanup'
* gl/cleanup: Convert memset(hash,0,20) to hashclr(hash). Convert memcpy(a,b,20) to hashcpy(a,b).
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 17cd0cef3c..e70ef0ae0f 100644
--- a/refs.c
+++ b/refs.c
@@ -29,7 +29,7 @@ const char *resolve_ref(const char *path, unsigned char *sha1, int reading)
if (lstat(path, &st) < 0) {
if (reading || errno != ENOENT)
return NULL;
- memset(sha1, 0, 20);
+ hashclr(sha1);
return path;
}