mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user