Skip to content

Commit c7877e9

Browse files
committed
fix(_udevcmd): protect against localvar_inherit
1 parent fb130ad commit c7877e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/_udevadm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _comp_cmd_udevadm()
88
local cur prev words cword was_split comp_args
99
_comp_initialize -s -- "$@" || return
1010

11-
local i udevcmd has_udevcmd=""
11+
local i udevcmd="" has_udevcmd=""
1212
for ((i = 1; i < cword; i++)); do
1313
if [[ ${words[i]} != -* ]]; then
1414
udevcmd=${words[i]}

0 commit comments

Comments
 (0)