neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit ebd7b0fbc378e9beca0b275c5cd9150c930bde56
parent bb3e7950c39b67e863a618b3a0e766544b65d3cb
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Sat,  3 Feb 2007 16:11:41 +0100

Do not die if tag has no message

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

Diffstat:
Mparsing.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parsing.c b/parsing.c @@ -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;