From b32502da83ff7e7241a4584c88f3a35859dfeeda Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 20 May 2007 17:01:14 +0000 Subject: applied post-1.5.0 fixes --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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 { -- cgit v1.1