summaryrefslogtreecommitdiff
path: root/diff-lib.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-23 13:57:23 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-23 13:57:23 -0700
commita8e0d16d85fb2ea53775f64549cac2396cd621a6 (patch)
treeccf97a33f1fc45501bbe56bedcd24e71783df8e5 /diff-lib.c
parente702496e434a160f798447b95b9cea3cd138c140 (diff)
downloadgit-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 'diff-lib.c')
-rw-r--r--diff-lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-lib.c b/diff-lib.c
index 2fc41263ae..9edfa92626 100644
--- a/diff-lib.c
+++ b/diff-lib.c
@@ -48,7 +48,7 @@ int run_diff_files(struct rev_info *revs, int silent_on_removed)
memcpy(dpath->path, ce->name, path_len);
dpath->path[path_len] = '\0';
dpath->mode = 0;
- memset(dpath->sha1, 0, 20);
+ hashclr(dpath->sha1);
memset(&(dpath->parent[0]), 0,
sizeof(struct combine_diff_parent)*5);