diff --git a/stagit.c b/stagit.c index ff81b53..0377ad8 100644 --- a/stagit.c +++ b/stagit.c @@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) } if (ci->summary) { fputs("", fp); - if (tag) { + if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); fputs("] ", fp);