summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e08ecb)
raw | patch | inline | side by side (parent: 5e08ecb)
author | James Bowes <jbowes@dangerouslyinc.com> | |
Mon, 19 Mar 2007 21:42:40 +0000 (17:42 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Mar 2007 01:16:03 +0000 (18:16 -0700) |
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-log.c | patch | blob | history | |
commit.c | patch | blob | history | |
revision.c | patch | blob | history |
diff --git a/builtin-log.c b/builtin-log.c
index 865832c85e8e860b328a5f5741e871b486fd89b6..71df957eaa0b85bd841fe3758b6efbfd51243881 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
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 = "";
}
diff --git a/commit.c b/commit.c
index 5b9234e12e8d1ef46d0d53b15cea850dfbde14c2..718e568855a37586f99f20bcfafd44cf3aa2b657 100644 (file)
--- a/commit.c
+++ b/commit.c
encoding = get_header(commit, "encoding");
use_encoding = encoding ? encoding : utf8;
if (!strcmp(use_encoding, output_encoding))
- out = strdup(commit->buffer);
+ out = xstrdup(commit->buffer);
else
out = reencode_string(commit->buffer,
output_encoding, use_encoding);
diff --git a/revision.c b/revision.c
index bcdb6a12122871e743dd3b2362ca7bd5b1b787df..c680dcb8ba28bb8405cec06846592f5430e8f45b 100644 (file)
--- 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;