From 64696f59e7d156980f1f426c13b9a95b64060a5e Mon Sep 17 00:00:00 2001 From: vda Date: Thu, 10 May 2007 23:05:28 +0000 Subject: hush: fix recent breakage (VAR=VAL stopped working) git-svn-id: svn://busybox.net/trunk/busybox@18605 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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 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) result = -1; } else { cur->name = strdup(name); - if (cur->name) { + if (!cur->name) { free(cur); result = -1; } else { -- cgit v1.2.3-55-g6feb