]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Revert "client: remove useless variable declaration in zsh completion"
authorVincent Bernat <vincent@bernat.ch>
Sun, 8 Dec 2019 06:10:47 +0000 (07:10 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 8 Dec 2019 06:10:47 +0000 (07:10 +0100)
This reverts commit e37dd8d0a3f67b345681b46c175249eee286bed0.

src/client/completion/_lldpcli

index 4ab5fe43707748f0e4322a090975ee6ec0e0a10d..ff942f1bb44d04477c09d6ba3357cdc32778444f 100644 (file)
@@ -25,8 +25,8 @@ __lldpcli_command () {
 }
 
 _lldpcli () {
-    local context state state_descr line
-    typeset -A opt_args
+    local curcontext="$curcontext" state line
+
     _arguments -C \
         '*-d[print more debugging information]' \
         '(- *)-v[print version number and exit]' \