about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-10-07 07:46:09 +0000
committerClint Adams <clint@users.sourceforge.net>2008-10-07 07:46:09 +0000
commit8538c98ddf96430815df970ab881987d6a436787 (patch)
treed162c76602b08402df41d633487112f9dc0c1558
parent26616e1a231da91fd20653946d40660b62499804 (diff)
downloadzsh-8538c98ddf96430815df970ab881987d6a436787.tar.gz
zsh-8538c98ddf96430815df970ab881987d6a436787.tar.xz
zsh-8538c98ddf96430815df970ab881987d6a436787.zip
Jörg Sommer: 25822: declare val_args as local array.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Linux/Command/_modutils2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dd1bb20e8..5f278e912 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-10-07  Clint Adams  <clint@zsh.org>
 
+	* Jörg Sommer: 25822: Completion/Linux/Command/_modutils: declare
+	val_args as local array.
+
 	* Jörg Sommer: 25821: Completion/Linux/Command/_modutils: return 0
 	if a modules parameter was completed.
 
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index 91dff4bde..faab85275 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -95,6 +95,8 @@ case "$state" in
     if compset -P '*='; then
       _message -e value 'parameter value'
     else
+      typeset -A val_args
+
       _values 'module parameter' \
         ${(f)^"$(_call_program module_parameter modinfo -F parm "$words[2]" 2>/dev/null)"//:/\=[}\] && ret=0
     fi