aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2017-08-18 03:59:35 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-17 19:18:17 -0700
commit50c5cd5800be172300da79b271037148f31d1987 (patch)
tree898807ebb425280452f16f0aa806dd8c5563a494 /sha1_file.c
parentb3622a4ee94e4916cd05e6d96e41eeb36b941182 (diff)
downloadgit-50c5cd5800be172300da79b271037148f31d1987.tar.gz
git-50c5cd5800be172300da79b271037148f31d1987.tar.xz
sha1_file: fix definition of null_sha1
The array is declared in cache.h as: extern const unsigned char null_sha1[GIT_MAX_RAWSZ]; Definition in sha1_file.c must match. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index b60ae15f7..f5b5bec52 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -32,7 +32,7 @@
#define SZ_FMT PRIuMAX
static inline uintmax_t sz_fmt(size_t s) { return s; }
-const unsigned char null_sha1[20];
+const unsigned char null_sha1[GIT_MAX_RAWSZ];
const struct object_id null_oid;
const struct object_id empty_tree_oid = {
EMPTY_TREE_SHA1_BIN_LITERAL