diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-23 13:57:23 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-23 13:57:23 -0700 |
commit | a8e0d16d85fb2ea53775f64549cac2396cd621a6 (patch) | |
tree | ccf97a33f1fc45501bbe56bedcd24e71783df8e5 /blame.c | |
parent | e702496e434a160f798447b95b9cea3cd138c140 (diff) | |
download | git-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 'blame.c')
-rw-r--r-- | blame.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ static int get_blob_sha1(struct tree *t, const char *pathname, blame_file = pathname; pathspec[0] = pathname; pathspec[1] = NULL; - memset(blob_sha1, 0, sizeof(blob_sha1)); + hashclr(blob_sha1); read_tree_recursive(t, "", 0, 0, pathspec, get_blob_sha1_internal); for (i = 0; i < 20; i++) { |