From: Denis Vlasenko Date: Thu, 10 May 2007 23:05:28 +0000 (-0000) Subject: hush: fix recent breakage (VAR=VAL stopped working) X-Git-Tag: 1_6_0~74 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=53079d494ef0c1fec481b062b3614c45e60eb057;p=oweals%2Fbusybox.git hush: fix recent breakage (VAR=VAL stopped working) --- 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 {