gsu: Add missing declaration of a local variable.
authorAndre Noll <maan@systemlinux.org>
Wed, 30 Jul 2014 10:37:53 +0000 (12:37 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:39:58 +0000 (21:39 +0200)
"opt" is used but not declared local.

misc/gsu/subcommand

index ddb351a..43f7df7 100644 (file)
@@ -62,7 +62,7 @@ _gsu_print_available_commands()
 
 gsu_complete_options()
 {
-       local opts="$1" cword="$2" cur
+       local opts="$1" cword="$2" cur opt
        local -a words
 
        shift 2