X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.c;h=718e568855a37586f99f20bcfafd44cf3aa2b657;hb=66d5871ead74ae363274f221c9fa5945c18c4aa2;hp=5b9234e12e8d1ef46d0d53b15cea850dfbde14c2;hpb=e286114d0edbed846149227d48f75338fea760e5;p=git.git diff --git a/commit.c b/commit.c index 5b9234e12..718e56885 100644 --- a/commit.c +++ b/commit.c @@ -706,7 +706,7 @@ static char *logmsg_reencode(const struct commit *commit, encoding = get_header(commit, "encoding"); use_encoding = encoding ? encoding : utf8; if (!strcmp(use_encoding, output_encoding)) - out = strdup(commit->buffer); + out = xstrdup(commit->buffer); else out = reencode_string(commit->buffer, output_encoding, use_encoding);