diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-10 23:05:28 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-10 23:05:28 +0000 |
commit | 64696f59e7d156980f1f426c13b9a95b64060a5e (patch) | |
tree | 38fea7094e87fa66c31785ee5d6918da19a57061 /shell | |
parent | 32a4c7910bb68fab2453bc240d7102f4be8972dc (diff) | |
download | busybox-w32-64696f59e7d156980f1f426c13b9a95b64060a5e.tar.gz busybox-w32-64696f59e7d156980f1f426c13b9a95b64060a5e.tar.bz2 busybox-w32-64696f59e7d156980f1f426c13b9a95b64060a5e.zip |
hush: fix recent breakage (VAR=VAL stopped working)
git-svn-id: svn://busybox.net/trunk/busybox@18605 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index 7afcfbda1..8ffb117de 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2420,7 +2420,7 @@ static int set_local_var(const char *s, int flg_export) | |||
2420 | result = -1; | 2420 | result = -1; |
2421 | } else { | 2421 | } else { |
2422 | cur->name = strdup(name); | 2422 | cur->name = strdup(name); |
2423 | if (cur->name) { | 2423 | if (!cur->name) { |
2424 | free(cur); | 2424 | free(cur); |
2425 | result = -1; | 2425 | result = -1; |
2426 | } else { | 2426 | } else { |