Fix possible undefined value in check-symsorting.pl

It is possible for $line to be undefined at first used, if
the symfile doesn't have a section prefix (which is the case
for auto-generated symfiles).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2013-04-22 18:23:28 +01:00
parent 59750ed6ea
commit 8f7a1ac810

View File

@ -11,7 +11,7 @@ my $lastgroup = undef;
foreach my $symfile (@ARGV) {
open SYMFILE, $symfile or die "cannot read $symfile: $!";
my $line;
my $line = 0;
my $groupfile = "";
my @group;