hcitool, rfcomm, ciptool, hciconfig: Don't leak $args.
This commit is contained in:
parent
97efc7ca08
commit
3a3290ddcf
@ -60,6 +60,7 @@ _hcitool()
|
|||||||
clock' -- "$cur" ) )
|
clock' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
local args
|
||||||
case $arg in
|
case $arg in
|
||||||
name|info|dc|rssi|lq|afh|auth|key|clkoff|lst)
|
name|info|dc|rssi|lq|afh|auth|key|clkoff|lst)
|
||||||
_count_args
|
_count_args
|
||||||
@ -214,6 +215,7 @@ _rfcomm()
|
|||||||
release' -- "$cur" ) )
|
release' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
local args
|
||||||
_count_args
|
_count_args
|
||||||
if [[ $args -eq 2 ]]; then
|
if [[ $args -eq 2 ]]; then
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
@ -253,6 +255,7 @@ _ciptool()
|
|||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
local args
|
||||||
case $arg in
|
case $arg in
|
||||||
connect|release|loopback)
|
connect|release|loopback)
|
||||||
_count_args
|
_count_args
|
||||||
@ -313,6 +316,7 @@ _hciconfig()
|
|||||||
version revision lm' -- "$cur" ) )
|
version revision lm' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
local args
|
||||||
case $arg in
|
case $arg in
|
||||||
putkey|delkey)
|
putkey|delkey)
|
||||||
_count_args
|
_count_args
|
||||||
|
Loading…
x
Reference in New Issue
Block a user