mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
signature: Fix compilation
This commit is contained in:
parent
d0323a5f63
commit
fea400f87b
@ -119,7 +119,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out)
|
|||||||
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. It doesn't start with '+' or '-'");
|
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. It doesn't start with '+' or '-'");
|
||||||
|
|
||||||
if (offset_start[1] < '0' || offset_start[1] > '9')
|
if (offset_start[1] < '0' || offset_start[1] > '9')
|
||||||
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset.
|
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset.");
|
||||||
|
|
||||||
if (git__strtol32(&dec_offset, offset_start + 1, &offset_end, 10) < GIT_SUCCESS)
|
if (git__strtol32(&dec_offset, offset_start + 1, &offset_end, 10) < GIT_SUCCESS)
|
||||||
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. It isn't a number");
|
return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. It isn't a number");
|
||||||
|
Loading…
Reference in New Issue
Block a user