summaryrefslogtreecommitdiffstats
path: root/Doc/Zsh/compsys.yo
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-11-02 14:12:29 +0000
committerClint Adams <clint@users.sourceforge.net>2008-11-02 14:12:29 +0000
commit6dbf2f2f4a97e2831094a73c662484ce990e7e41 (patch)
tree2b7eb40ddd7e3518a2a962eb8accf5a1ef7d9616 /Doc/Zsh/compsys.yo
parent25987: don't ztrdup the buffer returned by inet_ntoa. (diff)
downloadzsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.gz
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.bz2
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.lz
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.xz
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.zst
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.zip
25988: declare temporary cache array as local, thanks to problem noticed by Kazuhiro NISHIYAMA.
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r--Doc/Zsh/compsys.yo1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 825c441e3..be78b0aa2 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -3906,6 +3906,7 @@ Example:
example(_example_caching_policy () {
# rebuild if cache is more than a week old
+ local -a oldp
oldp=( "$1"(Nmw+1) )
(( $#oldp ))
})