Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceed221

Browse files
author
Sim Domingo
committed
fix msvc compile error
1 parent e169830 commit ceed221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,8 +1362,8 @@ int git_odb__error_notfound(
13621362
{
13631363
if (oid != NULL) {
13641364
size_t buf_len = oid_len;
1365-
if (oid_len == GIT_OID_HEXSZ) buf_len++;
13661365
char oid_str[GIT_OID_HEXSZ + 1];
1366+
if (oid_len == GIT_OID_HEXSZ) buf_len++;
13671367
git_oid_tostr(oid_str, buf_len, oid);
13681368
giterr_set(GITERR_ODB, "Object not found - %s (%.*s)",
13691369
message, oid_len, oid_str);

0 commit comments

Comments
 (0)