about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorMarko Myllynen <myllynen@redhat.com>2016-09-06 09:10:56 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-06 09:10:58 +0000
commit3768fcc28a28b02ae786faa013fc132cad8582fa (patch)
treecb774c4e8a162b2f240c4e1dd3f7f7a24c58d464 /Completion
parentfe3a63fa6cdffa020e380d3e27cf0eb8f3b46b1f (diff)
downloadzsh-3768fcc28a28b02ae786faa013fc132cad8582fa.tar.gz
zsh-3768fcc28a28b02ae786faa013fc132cad8582fa.tar.xz
zsh-3768fcc28a28b02ae786faa013fc132cad8582fa.zip
unposted: Fix leakage of $word (after 39179).
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_libvirt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt
index f93778876..d68f82d5e 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -131,7 +131,7 @@ case $state in
       _default
       return 0
     fi
-    local cmd
+    local cmd word
     for word in ${words:1}; do
       [[ -n "${_cache_virsh_cmds[(r)$word]}" ]] && cmd=$word && break
     done
@@ -211,7 +211,7 @@ case $state in
     _wanted commands expl 'virt-admin command' compadd -a _cache_virt_admin_cmds && ret=0
   ;;
   virt_admin_cmd_opts)
-    local cmd
+    local cmd word
     for word in ${words:1}; do
       [[ -n "${_cache_virt_admin_cmds[(r)$word]}" ]] && cmd=$word && break
     done