diff options
author | Bart Schaefer <schaefer@zsh.org> | 2024-11-05 13:50:51 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2024-11-05 13:50:51 -0800 |
commit | f282ff579284c7dd918438bc8e30fba4f6776c8c (patch) | |
tree | f0ef93322274279f263434bb6a951da12ec6c710 /Src | |
parent | ac1fd06d7ce073c86f00d50fd74464bcb5194e97 (diff) | |
download | zsh-f282ff579284c7dd918438bc8e30fba4f6776c8c.tar.gz zsh-f282ff579284c7dd918438bc8e30fba4f6776c8c.tar.xz zsh-f282ff579284c7dd918438bc8e30fba4f6776c8c.zip |
53209 + tests: do not unmetafy via string pointers into global parameter table
Diffstat (limited to 'Src')
-rw-r--r-- | Src/params.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c index acd577527..6f137585b 100644 --- a/Src/params.c +++ b/Src/params.c @@ -3064,8 +3064,9 @@ getsparam(char *s) mod_export char * getsparam_u(char *s) { + /* getsparam() returns pointer into global params table, so ... */ if ((s = getsparam(s))) - return unmetafy(s, NULL); + return unmeta(s); /* returns static pointer to copy */ return s; } |