diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-12 12:17:00 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-12 12:17:00 +0300 |
commit | 3a8955be982e26d8b0932d9baa50bb13ea9b3296 (patch) | |
tree | f75b94c63d5d1999082f30f6575ccba38b240114 /str_array.c | |
parent | 3cb9f16bb195a3d004692e85e7f9190a9469fcb1 (diff) | |
parent | 8f83ab76a1d8861d9a992290f2691443d5169c89 (diff) | |
download | egawk-3a8955be982e26d8b0932d9baa50bb13ea9b3296.tar.gz egawk-3a8955be982e26d8b0932d9baa50bb13ea9b3296.tar.bz2 egawk-3a8955be982e26d8b0932d9baa50bb13ea9b3296.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'str_array.c')
-rw-r--r-- | str_array.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/str_array.c b/str_array.c index d832380d..fe07ce4b 100644 --- a/str_array.c +++ b/str_array.c @@ -773,9 +773,13 @@ static NODE ** env_remove(NODE *symbol, NODE *subs) { NODE **val = str_remove(symbol, subs); + char save; - if (val != NULL) + if (val != NULL) { + str_terminate(subs, save); (void) unsetenv(subs->stptr); + str_restore(subs, save); + } return val; } |