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>
Patryk Obara committed
Aug 18, 2017 at 03:59 UTC
50c5cd5800be172300da79b271037148f31d1987
1 file changed
+1
-1
sha1_file.c
+1
-1
@@ -32,7 +32,7 @@
32
#define SZ_FMT PRIuMAX
33
static inline uintmax_t sz_fmt(size_t s) { return s; }
34
35
-const unsigned char null_sha1[20];
35
+const unsigned char null_sha1[GIT_MAX_RAWSZ];
36
const struct object_id null_oid;
37
const struct object_id empty_tree_oid = {
38
EMPTY_TREE_SHA1_BIN_LITERAL