mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Made possible to parse a person with no specified timezone offset.
This commit is contained in:
parent
13710f1e86
commit
fee065a069
@ -90,6 +90,12 @@ int git_person__parse_timezone_offset(const char *buffer, int *offset_out)
|
|||||||
|
|
||||||
offset_start = buffer + 1;
|
offset_start = buffer + 1;
|
||||||
|
|
||||||
|
if (*offset_start == '\n')
|
||||||
|
{
|
||||||
|
*offset_out = 0;
|
||||||
|
return GIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
if (offset_start[0] != '-' && offset_start[0] != '+')
|
if (offset_start[0] != '-' && offset_start[0] != '+')
|
||||||
return GIT_EOBJCORRUPTED;
|
return GIT_EOBJCORRUPTED;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user