diff options
author | Denis Vlasenko | 2007-05-10 23:05:28 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-05-10 23:05:28 +0000 |
commit | 53079d494ef0c1fec481b062b3614c45e60eb057 (patch) | |
tree | 38fea7094e87fa66c31785ee5d6918da19a57061 | |
parent | 2b54aaa9bf38eedc3c35604e19ae5415f6e9f2df (diff) | |
download | busybox-53079d494ef0c1fec481b062b3614c45e60eb057.zip busybox-53079d494ef0c1fec481b062b3614c45e60eb057.tar.gz |
hush: fix recent breakage (VAR=VAL stopped working)
-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 7afcfbd..8ffb117 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2420,7 +2420,7 @@ static int set_local_var(const char *s, int flg_export) result = -1; } else { cur->name = strdup(name); - if (cur->name) { + if (!cur->name) { free(cur); result = -1; } else { |