aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junio@twinsun.com>2005-09-30 14:02:47 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-30 22:12:01 -0700
commit88cd621deedd2aab8f0a4c6ea3afed7269e66d0c (patch)
treea3dd83cf845cacb5a7340b78128bd36dfa6aa81d /sha1_file.c
parent894a8a8b1b935639ac2ea503e8fa2887fd6bd44b (diff)
downloadgit-88cd621deedd2aab8f0a4c6ea3afed7269e66d0c.tar.gz
git-88cd621deedd2aab8f0a4c6ea3afed7269e66d0c.tar.xz
Consolidate null_sha1[].
Signed-off-by: Junio C Hamano <junio@twinsun.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 1e847a891..895c1fab6 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -20,6 +20,8 @@
#endif
#endif
+const unsigned char null_sha1[20] = { 0, };
+
static unsigned int sha1_file_open_flag = O_NOATIME;
static unsigned hexval(char c)