mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
Do not die if tag has no message
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
bb3e7950c3
commit
ebd7b0fbc3
@ -220,7 +220,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
|
|||||||
|
|
||||||
p = data;
|
p = data;
|
||||||
|
|
||||||
while (p) {
|
while (p && *p) {
|
||||||
if (*p == '\n')
|
if (*p == '\n')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
|
|||||||
|
|
||||||
while (p && (*p == '\n'))
|
while (p && (*p == '\n'))
|
||||||
p = strchr(p, '\n') + 1;
|
p = strchr(p, '\n') + 1;
|
||||||
if (p)
|
if (p && *p)
|
||||||
ret->msg = xstrdup(p);
|
ret->msg = xstrdup(p);
|
||||||
free(data);
|
free(data);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user