summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/log-tree.c b/log-tree.c
index 3e5e6acfaf..23191543d5 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -280,7 +280,8 @@ void show_log(struct rev_info *opt, const char *sep)
if (opt->show_log_size)
printf("log size %i\n", (int)msgbuf.len);
- printf("%s%s%s", msgbuf.buf, extra, sep);
+ if (msgbuf.len)
+ printf("%s%s%s", msgbuf.buf, extra, sep);
strbuf_release(&msgbuf);
}