[libvirt] [PATCH 01/11] Fix possible undefined value in check-symsorting.pl
Daniel P. Berrange
berrange at redhat.com
Thu May 2 12:03:39 UTC 2013
From: "Daniel P. Berrange" <berrange at 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 at 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
More information about the libvir-list
mailing list