From: "Daniel P. Berrange" <berra...@redhat.com>

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 <berra...@redhat.com>
---
 src/check-symsorting.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check-symsorting.pl b/src/check-symsorting.pl
index c523c34..f360dfb 100755
--- a/src/check-symsorting.pl
+++ b/src/check-symsorting.pl
@@ -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;
 
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to