about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-07-22 13:12:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-07-22 13:12:09 +0000
commitef8d5c7214e7b545718cdb10a3bd7be275513a44 (patch)
treec423ca527b88515c641ccf246863e18cabd42341 /Src
parent48205cc72ff7ce3a1470226ae508e5194252db4e (diff)
downloadzsh-ef8d5c7214e7b545718cdb10a3bd7be275513a44.tar.gz
zsh-ef8d5c7214e7b545718cdb10a3bd7be275513a44.tar.xz
zsh-ef8d5c7214e7b545718cdb10a3bd7be275513a44.zip
18880: Don't return unset parameters in $parameters
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/parameter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 86911c15b..6960dceb0 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -181,6 +181,8 @@ scanpmparameters(HashTable ht, ScanFunc func, int flags)
 
     for (i = 0; i < realparamtab->hsize; i++)
 	for (hn = realparamtab->nodes[i]; hn; hn = hn->next) {
+	    if (((Param)hn)->flags & PM_UNSET)
+		continue;
 	    pm.nam = hn->nam;
 	    if (func != scancountparams &&
 		((flags & (SCANPM_WANTVALS|SCANPM_MATCHVAL)) ||