From fee065a0698a177811998580700a21214b69ab18 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Sat, 11 Dec 2010 15:34:37 +0100 Subject: [PATCH] Made possible to parse a person with no specified timezone offset. --- src/person.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/person.c b/src/person.c index 8372d6e71..96dc5d28d 100644 --- a/src/person.c +++ b/src/person.c @@ -90,6 +90,12 @@ int git_person__parse_timezone_offset(const char *buffer, int *offset_out) offset_start = buffer + 1; + if (*offset_start == '\n') + { + *offset_out = 0; + return GIT_SUCCESS; + } + if (offset_start[0] != '-' && offset_start[0] != '+') return GIT_EOBJCORRUPTED;