aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index f561631374..7e5dbca4bd 100644
--- a/config.c
+++ b/config.c
@@ -1568,7 +1568,7 @@ static int git_default_core_config(const char *var, const char *value,
else if (value[0] && !value[1]) {
if (value[0] == '\n')
return error(_("core.commentChar cannot be newline"));
- comment_line_char = value[0];
+ comment_line_str = xstrfmt("%c", value[0]);
auto_comment_line_char = 0;
} else
return error(_("core.commentChar should only be one ASCII character"));