From 567fb65e251d946cee2b73a9b188231652fe663c Mon Sep 17 00:00:00 2001 From: James Bowes Date: Mon, 19 Mar 2007 17:42:40 -0400 Subject: Replace remaining instances of strdup with xstrdup. Signed-off-by: James Bowes Signed-off-by: Junio C Hamano --- commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit.c') 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); -- cgit v1.2.3