diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-26 01:06:22 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-26 01:06:22 -0700 |
commit | a7f051987c5f020e60da1e5d6ddefc3d443d3299 (patch) | |
tree | ad35bcb194fce5509db30e12b499920b01ccc930 /builtin-write-tree.c | |
parent | gitweb: git_annotate didn't expect negative numeric timezone (diff) | |
parent | Convert memset(hash,0,20) to hashclr(hash). (diff) | |
download | tgif-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 'builtin-write-tree.c')
-rw-r--r-- | builtin-write-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-write-tree.c b/builtin-write-tree.c index ca06149f18..50670dc7bf 100644 --- a/builtin-write-tree.c +++ b/builtin-write-tree.c @@ -50,10 +50,10 @@ int write_tree(unsigned char *sha1, int missing_ok, const char *prefix) if (prefix) { struct cache_tree *subtree = cache_tree_find(active_cache_tree, prefix); - memcpy(sha1, subtree->sha1, 20); + hashcpy(sha1, subtree->sha1); } else - memcpy(sha1, active_cache_tree->sha1, 20); + hashcpy(sha1, active_cache_tree->sha1); rollback_lock_file(lock_file); |