summaryrefslogtreecommitdiffstats
path: root/Completion/Redhat/Command/_rpm
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 /Completion/Redhat/Command/_rpm
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 'Completion/Redhat/Command/_rpm')
-rw-r--r--Completion/Redhat/Command/_rpm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Redhat/Command/_rpm b/Completion/Redhat/Command/_rpm
index 140f5313f..184d7b00d 100644
--- a/Completion/Redhat/Command/_rpm
+++ b/Completion/Redhat/Command/_rpm
@@ -314,6 +314,7 @@ fi
_rpms_caching_policy () {
# rebuild if cache is more than a week old
+ local -a oldp
oldp=( "$1"(mw+1) )
(( $#oldp )) && return 0