kconfig: Make a variable local in streamline_config.pl
authorToralf Foerster <toralf.foerster@gmx.de>
Fri, 28 May 2010 08:24:59 +0000 (10:24 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 28 May 2010 14:31:25 +0000 (10:31 -0400)
Proper perl requires that local variables should be declared with 'my',
otherwise this may produce errors.

Signed-off-by: Toralf Foerster <toralf.foerster@gmx.de>
LKML-Reference: <201005281025.00358.toralf.foerster@gmx.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl

index afbd54a..9726946 100644 (file)
@@ -307,7 +307,7 @@ close (LIN);
 my %configs;
 foreach my $module (keys(%modules)) {
     if (defined($objects{$module})) {
-       @arr = @{$objects{$module}};
+       my @arr = @{$objects{$module}};
        foreach my $conf (@arr) {
            $configs{$conf} = $module;
        }