From 8f7a1ac810421c084f736f77492d541301dfbd90 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 22 Apr 2013 18:23:28 +0100 Subject: [PATCH] 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 --- 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 c523c34b21..f360dfb69f 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;