Browse Source

Handle missing prefix for "Subject:" as if no prefix given

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Alex Riesen 18 years ago committed by Junio C Hamano
parent
commit
88c447e8f4
  1. 2
      log-tree.c

2
log-tree.c

@ -200,7 +200,7 @@ void show_log(struct rev_info *opt, const char *sep) @@ -200,7 +200,7 @@ void show_log(struct rev_info *opt, const char *sep)
digits_in_number(opt->total),
opt->nr, opt->total);
subject = buffer;
} else if (opt->total == 0) {
} else if (opt->total == 0 && opt->subject_prefix && *opt->subject_prefix) {
static char buffer[256];
snprintf(buffer, sizeof(buffer),
"Subject: [%s] ",

Loading…
Cancel
Save