summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJames Bowes <jbowes@dangerouslyinc.com>2007-03-19 17:42:40 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-19 18:16:03 -0700
commit567fb65e251d946cee2b73a9b188231652fe663c (patch)
tree348b2eaa37c98527f3b817add17010fb82d05396 /commit.c
parent5e08ecbff219dc68a13eb372b39030134e737c8a (diff)
downloadgit-567fb65e251d946cee2b73a9b188231652fe663c.tar.gz
Replace remaining instances of strdup with xstrdup.
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 5b9234e12e..718e568855 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);