diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-06 13:11:25 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-06 13:11:25 +0900 |
commit | 8b36f0b196225fc25588220acf921d011d4bf9a7 (patch) | |
tree | 092fe8f849f4d077323f9546624975b936e05932 /sha1_file.c | |
parent | 1fb77b3ee5417e7b6af782e43c8b98256861cca5 (diff) | |
parent | cfa5bf16082e25c9221e26851ca890f71ddf5a5f (diff) | |
download | git-8b36f0b196225fc25588220acf921d011d4bf9a7.tar.gz |
Merge branch 'po/read-graft-line'
Conversion from uchar[20] to struct object_id continues; this is to
ensure that we do not assume sizeof(struct object_id) is the same
as the length of SHA-1 hash (or length of longest hash we support).
* po/read-graft-line:
commit: rewrite read_graft_line
commit: allocate array using object_id size
commit: replace the raw buffer with strbuf in read_graft_line
sha1_file: fix definition of null_sha1
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index f56bb5cae7..5f71bbac3e 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -30,7 +30,7 @@ #include "quote.h" #include "packfile.h" -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 |