diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-06-08 16:29:59 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-06-08 16:37:19 +0200 |
| commit | 28a41561748f0d0a14e1af7656f07242818ed3d9 (patch) | |
| tree | 7037b08eaff3ecd0a3c198deae2b544aff0af8f0 /Src/Modules | |
| parent | unposted: add :S from 51816 to completion (diff) | |
| download | zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar.gz zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar.bz2 zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar.lz zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar.xz zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.tar.zst zsh-28a41561748f0d0a14e1af7656f07242818ed3d9.zip | |
unposted: fix NULL termination in ksh93
I'm not sure how I messed this up in 54558, but now it should be
actually correct. I even tested it:
% [[ foo = (#m)(#b)f(o)o ]]
% zmodload -F zsh/ksh93 p:.sh.match
% () { setopt localoptions ksharrays; typeset -p .sh.match }
typeset -g -ar .sh.match=( foo o )
Diffstat (limited to 'Src/Modules')
| -rw-r--r-- | Src/Modules/ksh93.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Modules/ksh93.c b/Src/Modules/ksh93.c index 159a4fe7c..95a69bc43 100644 --- a/Src/Modules/ksh93.c +++ b/Src/Modules/ksh93.c @@ -80,6 +80,7 @@ matchgetfn(Param pm) *ap++ = match ? match : ztrdup(""); while (*zsh_match) *ap++ = ztrdup(*zsh_match++); + *ap = NULL; } else pm->u.arr = zarrdup(zsh_match); } else if (isset(KSHARRAYS)) { |
