about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2023-02-21 12:16:40 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2023-02-21 12:16:40 +0000
commit82f307bddfaff0f6e45bf315ff43ea4192529cad (patch)
tree1a9390633972904cff5f18e8a66ba0744368f1eb /Src
parentd2768f2f886c34dafa535b46796948b6a860d974 (diff)
downloadzsh-82f307bddfaff0f6e45bf315ff43ea4192529cad.tar.gz
zsh-82f307bddfaff0f6e45bf315ff43ea4192529cad.tar.xz
zsh-82f307bddfaff0f6e45bf315ff43ea4192529cad.zip
Fix access to autoloaded parameter.
Namerefef resolution needs to happen on the parameter after autoload.
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index e940d7995..90302b1b0 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -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;
 }