[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.1-19-g3a3290d

Ville Skyttä ville.skytta at iki.fi
Fri Jun 14 18:12:21 UTC 2013


The following commit has been merged in the master branch:
commit 3a3290ddcf81181bbd9f22a739536b65df0c5647
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jun 14 21:11:18 2013 +0300

    hcitool, rfcomm, ciptool, hciconfig: Don't leak $args.

diff --git a/completions/hcitool b/completions/hcitool
index b650e20..5891392 100644
--- a/completions/hcitool
+++ b/completions/hcitool
@@ -60,6 +60,7 @@ _hcitool()
                 clock' -- "$cur" ) )
         fi
     else
+        local args
         case $arg in
             name|info|dc|rssi|lq|afh|auth|key|clkoff|lst)
                 _count_args
@@ -214,6 +215,7 @@ _rfcomm()
                 release' -- "$cur" ) )
         fi
     else
+        local args
         _count_args
         if [[ $args -eq 2 ]]; then
             _bluetooth_devices
@@ -253,6 +255,7 @@ _ciptool()
                 -- "$cur" ) )
         fi
     else
+        local args
         case $arg in
             connect|release|loopback)
                 _count_args
@@ -313,6 +316,7 @@ _hciconfig()
                 version revision lm' -- "$cur" ) )
         fi
     else
+        local args
         case $arg in
             putkey|delkey)
                 _count_args

-- 
bash-completion



More information about the Bash-completion-commits mailing list