summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9debc32)
raw | patch | inline | side by side (parent: 9debc32)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 16 Mar 2007 01:02:51 +0000 (21:02 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 16 Mar 2007 09:12:14 +0000 (02:12 -0700) |
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>
Make it so.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c | patch | blob | history |
diff --git a/config.c b/config.c
index a3c7b772bce1d302e60bbf02212bb4ad4da0ee7b..d537311ae1d4321c3f5f90930f7451262caf2ae5 100644 (file)
--- a/config.c
+++ b/config.c
}
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;
}