hush: fix recent breakage (VAR=VAL stopped working)
This commit is contained in:
parent
2b54aaa9bf
commit
53079d494e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user