mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
oid: define GIT_OID_SHA1_ZERO
Callers should not assume the layout of the oid structure; provide them a macro that defines the null / zero sha1 object id.
This commit is contained in:
@@ -679,7 +679,7 @@ static void reference_listing(git_repository *repo)
|
||||
|
||||
for (i = 0; i < ref_list.count; ++i) {
|
||||
git_reference *ref;
|
||||
char oid_hex[GIT_OID_SHA1_HEXSIZE+1] = GIT_OID_HEX_ZERO;
|
||||
char oid_hex[GIT_OID_SHA1_HEXSIZE+1] = GIT_OID_SHA1_HEXZERO;
|
||||
const char *refname;
|
||||
|
||||
refname = ref_list.strings[i];
|
||||
|
||||
Reference in New Issue
Block a user