mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
59750ed6ea
commit
8f7a1ac810
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue