hcitool, rfcomm, ciptool, hciconfig: Don't leak $args.
parent
97efc7ca08
commit
3a3290ddcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue