summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-20 17:01:14 +0000
committerDenis Vlasenko2007-05-20 17:01:14 +0000
commitb32502da83ff7e7241a4584c88f3a35859dfeeda (patch)
tree7dcdaf2b3940b86ca74f185cdb5dedfdc385c8d2 /shell/hush.c
parent568d8c9a5cb05a595b4201198fd3c780920586dc (diff)
downloadbusybox-b32502da83ff7e7241a4584c88f3a35859dfeeda.zip
busybox-b32502da83ff7e7241a4584c88f3a35859dfeeda.tar.gz
applied post-1.5.0 fixes1_5_1
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 7658aeb..cc0cb69 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1840,7 +1840,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 {