@matheusbsbs / matheus-bagliano / commits / dbb2b41aa4
Fork 0

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>

Shawn O. Pearce committed Mar 15, 2007 at 21:02 UTC dbb2b41aa49aa0cd088f5fabd5326dcfed7144e3
1 file changed +2 -2
config.c
+2 -2
@@ -351,12 +351,12 @@ int git_default_config(const char *var, const char *value)
351 }
352
353 if (!strcmp(var, "i18n.commitencoding")) {
354 - git_commit_encoding = strdup(value);
354 + git_commit_encoding = xstrdup(value);
355 return 0;
356 }
357
358 if (!strcmp(var, "i18n.logoutputencoding")) {
359 - git_log_output_encoding = strdup(value);
359 + git_log_output_encoding = xstrdup(value);
360 return 0;
361 }
362