Do not die if tag has no message

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli 2007-02-03 16:11:41 +01:00
父节点 bb3e7950c3
当前提交 ebd7b0fbc3
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -220,7 +220,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
p = data;
while (p) {
while (p && *p) {
if (*p == '\n')
break;
@ -238,7 +238,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
while (p && (*p == '\n'))
p = strchr(p, '\n') + 1;
if (p)
if (p && *p)
ret->msg = xstrdup(p);
free(data);
return ret;