Skip to content

Commit 50c5cd5

Browse files
dreamergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3622a4 commit 50c5cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define SZ_FMT PRIuMAX
3333
static inline uintmax_t sz_fmt(size_t s) { return s; }
3434

35-
const unsigned char null_sha1[20];
35+
const unsigned char null_sha1[GIT_MAX_RAWSZ];
3636
const struct object_id null_oid;
3737
const struct object_id empty_tree_oid = {
3838
EMPTY_TREE_SHA1_BIN_LITERAL

0 commit comments

Comments
 (0)