From 53079d494ef0c1fec481b062b3614c45e60eb057 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 10 May 2007 23:05:28 +0000 Subject: [PATCH] hush: fix recent breakage (VAR=VAL stopped working) --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.7.4