hush: fix recent breakage (VAR=VAL stopped working)

This commit is contained in:
Denis Vlasenko 2007-05-10 23:05:28 +00:00
parent 2b54aaa9bf
commit 53079d494e

View File

@ -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 {