summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/params.c b/Src/params.c
index 58927f1c0..379d90729 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1302,6 +1302,8 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w,
 
 	if (v->isarr) {
 	    if (ishash) {
+		if (!pprog)
+		    return 1;
 		scanprog = pprog;
 		scanstr = s;
 		if (keymatch)