diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-29 17:39:38 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-29 17:39:38 +0000 |
commit | 7be4f882fe27f2a879f4fe83663e5e33fa1f9c77 (patch) | |
tree | c04c0cf173aaa7cb4381c4310a8bdffb67662e59 /Src/params.c | |
parent | 28cf4041b4ed58ba2ae9860f9dfc138edcdbb34b (diff) | |
download | zsh-7be4f882fe27f2a879f4fe83663e5e33fa1f9c77.tar.gz zsh-7be4f882fe27f2a879f4fe83663e5e33fa1f9c77.tar.xz zsh-7be4f882fe27f2a879f4fe83663e5e33fa1f9c77.zip |
25772: crash with bad associative array pattern search
Diffstat (limited to 'Src/params.c')
-rw-r--r-- | Src/params.c | 2 |
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) |