summaryrefslogtreecommitdiff
path: root/revision.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 /revision.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 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index bcdb6a1212..c680dcb8ba 100644
--- a/revision.c
+++ b/revision.c
@@ -1038,7 +1038,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
if (!prefixcmp(arg, "--encoding=")) {
arg += 11;
if (strcmp(arg, "none"))
- git_log_output_encoding = strdup(arg);
+ git_log_output_encoding = xstrdup(arg);
else
git_log_output_encoding = "";
continue;