summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-03-15 21:02:51 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-16 02:12:14 -0700
commitdbb2b41aa49aa0cd088f5fabd5326dcfed7144e3 (patch)
tree200ee0aa4001a1b9c1097ec821d3dae926f94c65 /config.c
parent9debc3241b5d54891600c839b4df4f48b2daa60c (diff)
downloadgit-dbb2b41aa49aa0cd088f5fabd5326dcfed7144e3.tar.gz
use xstrdup please
We generally prefer xstrdup to just plain strdup. Make it so. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index a3c7b772bc..d537311ae1 100644
--- a/config.c
+++ b/config.c
@@ -351,12 +351,12 @@ int git_default_config(const char *var, const char *value)
}
if (!strcmp(var, "i18n.commitencoding")) {
- git_commit_encoding = strdup(value);
+ git_commit_encoding = xstrdup(value);
return 0;
}
if (!strcmp(var, "i18n.logoutputencoding")) {
- git_log_output_encoding = strdup(value);
+ git_log_output_encoding = xstrdup(value);
return 0;
}