[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 01/11] Fix possible undefined value in check-symsorting.pl



From: "Daniel P. Berrange" <berrange 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 <berrange 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]