all repos — cgit @ ebd7b0fbc378e9beca0b275c5cd9150c930bde56

a hyperfast web frontend for git written in c

Do not die if tag has no message

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Feb 2007 16:11:41 +0100
commit

ebd7b0fbc378e9beca0b275c5cd9150c930bde56

parent

bb3e7950c39b67e863a618b3a0e766544b65d3cb

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M parsing.cparsing.c

@@ -220,7 +220,7 @@ ret->msg = NULL;

p = data; - while (p) { + while (p && *p) { if (*p == '\n') break;

@@ -238,7 +238,7 @@ }

while (p && (*p == '\n')) p = strchr(p, '\n') + 1; - if (p) + if (p && *p) ret->msg = xstrdup(p); free(data); return ret;