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:
parent
d2768f2f88
commit
82f307bddf
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue