提交 8f7a1ac8 编写于 作者: D Daniel P. Berrange

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: NDaniel P. Berrange <berrange@redhat.com>
上级 59750ed6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册