]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
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 ddb351a01e9a0b1fe11a0c280bf004f004121fd1..43f7df77baf05e6fb3bcdad2a6907b20ee37ab02 100644 (file)
@@ -62,7 +62,7 @@ _gsu_print_available_commands()
 
 gsu_complete_options()
 {
 
 gsu_complete_options()
 {
-       local opts="$1" cword="$2" cur
+       local opts="$1" cword="$2" cur opt
        local -a words
 
        shift 2
        local -a words
 
        shift 2