about summary refs log tree commit diff
path: root/Completion/Darwin/Type
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/Darwin/Type
parent1b78e1a9121111ccb628262202c112c199ffc6d9 (diff)
downloadzsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.gz
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.xz
zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.zip
25988: declare temporary cache array as local, thanks to problem noticed by Kazuhiro NISHIYAMA.
Diffstat (limited to 'Completion/Darwin/Type')
-rw-r--r--Completion/Darwin/Type/_retrieve_mac_apps7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Darwin/Type/_retrieve_mac_apps b/Completion/Darwin/Type/_retrieve_mac_apps
index f435fde26..e9a30e006 100644
--- a/Completion/Darwin/Type/_retrieve_mac_apps
+++ b/Completion/Darwin/Type/_retrieve_mac_apps
@@ -4,9 +4,10 @@
 # Used by _mac_applications and _mac_files_for_application.
 
 _mac_apps_caching_policy () {
-   # Rebuild if cache is more than a day old
-   oldp=( "$1"(Nmw+1) )
-   (( $#oldp ))
+  # Rebuild if cache is more than a day old
+  local -a oldp
+  oldp=( "$1"(Nmw+1) )
+  (( $#oldp ))
 }