diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-06-20 23:48:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-20 23:48:21 -0700 |
commit | 4258c212ca2c3674be4b7e00a19db705eee77a48 (patch) | |
tree | 93e421911fc6e07f3dd18ea83aab9bd4ce2dd26e /ll-merge.c | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
parent | git-show-ref.txt: remove word and make consistent (diff) | |
download | tgif-4258c212ca2c3674be4b7e00a19db705eee77a48.tar.xz |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ll-merge.c b/ll-merge.c index fa2ca5250c..9723f3a5dc 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; } |