From: Daniel P. Berrange Date: Mon, 22 Apr 2013 17:23:28 +0000 (+0100) Subject: Fix possible undefined value in check-symsorting.pl X-Git-Tag: CVE-2013-1962~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f7a1ac810421c084f736f77492d541301dfbd90;p=thirdparty%2Flibvirt.git 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 --- 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;