parsing.c: be prepared for unexpected content in commit/tag objects

When parsing commits and tags cgit made too many assumptions about the
formatting of said objects. This patch tries to make the code be more
prepared to handle 'malformed' objects.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
此提交包含在:
Lars Hjemli
2008-09-14 09:45:37 +02:00
父節點 b28765135d
當前提交 a8305a9543
共有 2 個檔案被更改,包括 97 行新增64 行删除

2
cgit.h
查看文件

@ -85,7 +85,7 @@ struct commitinfo {
struct taginfo {
char *tagger;
char *tagger_email;
int tagger_date;
unsigned long tagger_date;
char *msg;
};