summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-08-09 09:48:35 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2018-08-09 09:48:35 +0100
commitf58b35bf88722b9e9e420fa86f1a0a96f98515d9 (patch)
treed4e98db2689ef434316a8a367b89e763453010b8 /Src
parent225b35c9070f94cf79c90c33ffcee84b281f894d (diff)
downloadzsh-f58b35bf88722b9e9e420fa86f1a0a96f98515d9.tar.gz
zsh-f58b35bf88722b9e9e420fa86f1a0a96f98515d9.tar.xz
zsh-f58b35bf88722b9e9e420fa86f1a0a96f98515d9.zip
43264: fix ${+assoc[nonexistent]} with KSH_ARRAYS
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 f13093403..a1c299f60 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1427,7 +1427,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w,
 	    HashTable ht = v->pm->gsu.h->getfn(v->pm);
 	    if (!ht) {
 		if (flags & SCANPM_CHECKING)
-		    return isset(KSHARRAYS) ? 1 : 0;
+		    return 0;
 		ht = newparamtable(17, v->pm->node.nam);
 		v->pm->gsu.h->setfn(v->pm, ht);
 	    }