[apache2] 03/06: a2query: replace C-ish for with perlish foreach

Stefan Fritsch sf at moszumanska.debian.org
Sat Jan 9 22:59:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to branch master
in repository apache2.

commit ae2eda761724645cc2b87e7e9ba8fb3c0dc6710a
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sat Jan 9 23:41:42 2016 +0100

    a2query: replace C-ish for with perlish foreach
---
 debian/a2query.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/a2query.in b/debian/a2query.in
index d0883e8..fba1368 100755
--- a/debian/a2query.in
+++ b/debian/a2query.in
@@ -176,9 +176,9 @@ sub load_defaults
 {
 	my @out = `$APACHE2 -V 2>/dev/null`;
 	return if $?;
-	for (my $line; $line <= $#out; $line++)
+	foreach my $line (@out)
 	{
-		if ($out[$line] =~ m/(Server version|Server MPM|Magic Number):\s+(.*?)$/)
+		if ($line =~ m/(Server version|Server MPM|Magic Number):\s+(.*?)$/)
 		{
 			my ($pattern, $value) = ($1, $2);
 			if ($pattern =~ /version/)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git



More information about the Pkg-apache-commits mailing list