diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-17 13:40:37 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-14 22:29:57 -0400 |
commit | 0acaf3a8eb7c3276b7864df8f5588c7007b38f35 (patch) | |
tree | a5f6a678339651be6c9681f84a489950d34b9fb2 /examples | |
parent | dbc4ac1c76827e954e0aa27afe8bb7e0b8993a93 (diff) | |
download | libgit2-0acaf3a8eb7c3276b7864df8f5588c7007b38f35.tar.gz |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c index 9e678f887..6b25dd023 100644 --- a/examples/general.c +++ b/examples/general.c @@ -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]; |