Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: fix definition of null_sha1
author
Patryk Obara
<patryk.obara@gmail.com>
Fri, 18 Aug 2017 01:59:35 +0000
(
03:59
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 18 Aug 2017 02:18:17 +0000
(19:18 -0700)
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>
sha1_file.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
b3622a4
)
diff --git
a/sha1_file.c
b/sha1_file.c
index b60ae15f7068c157df6407933ea7ee94a53f0640..f5b5bec52fd071029124dc69e6ba165b946f5a53 100644
(file)
--- 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