const char *p;
if (!memchr(sb->buf, candidates[0], sb->len)) {
- comment_line_char = candidates[0];
+ comment_line_str = xstrfmt("%c", candidates[0]);
return;
}
if (!*p)
die(_("unable to select a comment character that is not used\n"
"in the current commit message"));
- comment_line_char = *p;
+ comment_line_str = xstrfmt("%c", *p);
}
static void prepare_amend_commit(struct commit *commit, struct strbuf *sb,