summaryrefslogtreecommitdiff
path: root/ll-merge.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-06-20 23:48:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-06-20 23:48:46 -0700
commit3ba4f3a9fc68ba4c5a0064107e8993c5fc5b684f (patch)
treeae4db4348f007b3603534d720690869bc5c4b3e0 /ll-merge.c
parenthttp.c: fix compiling with libcurl 7.9.2 (diff)
parentMerge branch 'maint-1.6.1' into maint-1.6.2 (diff)
downloadtgif-3ba4f3a9fc68ba4c5a0064107e8993c5fc5b684f.tar.xz
Merge branch 'maint-1.6.2' into maint
* maint-1.6.2: git-show-ref.txt: remove word and make consistent git-svn documentation: fix typo in 'rebase vs. pull/merge' section use xstrdup, not strdup in ll-merge.c
Diffstat (limited to 'll-merge.c')
-rw-r--r--ll-merge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ll-merge.c b/ll-merge.c
index 81c02ad053..f7c2bc9278 100644
--- a/ll-merge.c
+++ b/ll-merge.c
@@ -238,7 +238,7 @@ static int read_merge_config(const char *var, const char *value, void *cb)
if (!strcmp(var, "merge.default")) {
if (value)
- default_ll_merge = strdup(value);
+ default_ll_merge = xstrdup(value);
return 0;
}
@@ -272,7 +272,7 @@ static int read_merge_config(const char *var, const char *value, void *cb)
if (!strcmp("name", ep)) {
if (!value)
return error("%s: lacks value", var);
- fn->description = strdup(value);
+ fn->description = xstrdup(value);
return 0;
}
@@ -295,14 +295,14 @@ static int read_merge_config(const char *var, const char *value, void *cb)
* file named by %A, and signal that it has done with zero exit
* status.
*/
- fn->cmdline = strdup(value);
+ fn->cmdline = xstrdup(value);
return 0;
}
if (!strcmp("recursive", ep)) {
if (!value)
return error("%s: lacks value", var);
- fn->recursive = strdup(value);
+ fn->recursive = xstrdup(value);
return 0;
}