-rw-r--r-- | parsing.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -147,2 +147,8 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) ret->commit = commit; + ret->author = NULL; + ret->author_email = NULL; + ret->committer = NULL; + ret->committer_email = NULL; + ret->subject = NULL; + ret->msg = NULL; @@ -182,2 +188,3 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) t = strchr(p, '\n'); + if (t && *t) { ret->subject = substr(p, t); @@ -188,3 +195,3 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) ret->msg = p; - + } return ret; |