summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-10-18 21:10:40 +0300
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-10-26 21:00:23 +0200
commit414646769d68285c6db2fa276de07e426f227dcf (patch)
tree404bead72624a6bd5c26acc7c7bf6a400104b4a1 /shell-completion
parent356e13335702508f50b81990c2847742e1a0caae (diff)
shell-completion: zsh: Mark a variable as local
Variables are global by default, and we certainly don't want _pactl_commands to be a global variable.
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_pulseaudio2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio
index 1c786dc10..5f66ed916 100644
--- a/shell-completion/zsh/_pulseaudio
+++ b/shell-completion/zsh/_pulseaudio
@@ -229,6 +229,8 @@ _pactl_completion() {
_set_remote
_pactl_command(){
+ local -a _pactl_commands
+
_pactl_commands=(
'help: show help and exit'
'stat: dump statistics about the PulseAudio daemon'