From: Shawn O. Pearce Date: Fri, 16 Mar 2007 01:02:51 +0000 (-0400) Subject: use xstrdup please X-Git-Tag: v1.5.1-rc1~25 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dbb2b41aa49aa0cd088f5fabd5326dcfed7144e3?ds=inline;hp=--cc use xstrdup please We generally prefer xstrdup to just plain strdup. Make it so. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- dbb2b41aa49aa0cd088f5fabd5326dcfed7144e3 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; }