diff options
author | Denis Vlasenko | 2007-02-25 02:37:49 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-02-25 02:37:49 +0000 |
commit | 4222ae440a3c73ce5481b7b0e2db0da229fa76aa (patch) | |
tree | ae43daa4fa56c238740ee64b603dfef1574b6050 /shell/ash.c | |
parent | 018e085d44206305f1d20e0111236f96f8d78c80 (diff) | |
download | busybox-4222ae440a3c73ce5481b7b0e2db0da229fa76aa.zip busybox-4222ae440a3c73ce5481b7b0e2db0da229fa76aa.tar.gz |
ash: replace xstrdup (shell shall not die)
grep: fix mis-indented block
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 8e8577a..371b5d9 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -2156,7 +2156,7 @@ putprompt(const char *s) { if (ENABLE_ASH_EXPAND_PRMT) { free((char*)cmdedit_prompt); - cmdedit_prompt = xstrdup(s); + cmdedit_prompt = ckstrdup(s); return; } cmdedit_prompt = s; @@ -11033,7 +11033,7 @@ dotcmd(int argc, char **argv) int status = 0; for (sp = cmdenviron; sp; sp = sp->next) - setvareq(xstrdup(sp->text), VSTRFIXED | VTEXTFIXED); + setvareq(ckstrdup(sp->text), VSTRFIXED | VTEXTFIXED); if (argc >= 2) { /* That's what SVR2 does */ char *fullname; |