Unidiff1 files changed, 2 insertions, 2 deletions
|
diff --git a/parsing.c b/parsing.c index 8aad1dd..1013dad 100644 --- a/ parsing.c+++ b/ parsing.c |
|
@@ -217,13 +217,13 @@ struct taginfo *cgit_parse_tag(struct tag *tag) |
217 | ret->tagger_email = NULL; |
217 | ret->tagger_email = NULL; |
218 | ret->tagger_date = 0; |
218 | ret->tagger_date = 0; |
219 | ret->msg = NULL; |
219 | ret->msg = NULL; |
220 | |
220 | |
221 | p = data; |
221 | p = data; |
222 | |
222 | |
223 | while (p) { |
223 | while (p && *p) { |
224 | if (*p == '\n') |
224 | if (*p == '\n') |
225 | break; |
225 | break; |
226 | |
226 | |
227 | if (!strncmp(p, "tagger ", 7)) { |
227 | if (!strncmp(p, "tagger ", 7)) { |
228 | p += 7; |
228 | p += 7; |
229 | t = strchr(p, '<') - 1; |
229 | t = strchr(p, '<') - 1; |
@@ -235,11 +235,11 @@ struct taginfo *cgit_parse_tag(struct tag *tag) |
235 | } |
235 | } |
236 | p = strchr(p, '\n') + 1; |
236 | p = strchr(p, '\n') + 1; |
237 | } |
237 | } |
238 | |
238 | |
239 | while (p && (*p == '\n')) |
239 | while (p && (*p == '\n')) |
240 | p = strchr(p, '\n') + 1; |
240 | p = strchr(p, '\n') + 1; |
241 | if (p) |
241 | if (p && *p) |
242 | ret->msg = xstrdup(p); |
242 | ret->msg = xstrdup(p); |
243 | free(data); |
243 | free(data); |
244 | return ret; |
244 | return ret; |
245 | } |
245 | } |
|