From: Patryk Obara Date: Fri, 18 Aug 2017 18:33:11 GMT Subject: [PATCH v4 1/4] sha1_file: fix definition of null_sha1 Message-ID: <08a1c3de7d35243c36296d88ed17e8307aa9fff2.1503079879.git.patryk.obara@gmail.com> In-Reply-To: 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 --- sha1_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha1_file.c b/sha1_file.c index b60ae15..f5b5bec 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 -- 2.9.5