1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-05-20 23:41:27 +02:00

Fix access to autoloaded parameter.

Namerefef resolution needs to happen on the parameter after autoload.
This commit is contained in:
Peter Stephenson 2023-02-21 12:16:40 +00:00
parent d2768f2f88
commit 82f307bddf
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2023-02-21 Peter Stephenson <p.stephenson@samsung.com>
* 51466: Src/params.c: fix access to autoloaded parameter.
2023-02-20 Bart Schaefer <schaefer@zsh.org>
* 51431: Src/builtin.c: "typeset -p" shouldn't change parameter flags

View file

@ -538,7 +538,7 @@ getparamnode(HashTable ht, const char *nam)
}
if (hn && ht == realparamtab)
hn = resolve_nameref(pm, NULL);
hn = resolve_nameref((Param)hn, NULL);
return hn;
}