From 6d0a5fd25953e6b46101759e41fcd6ff9d6b814c Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Wed, 5 Jun 2002 19:08:55 +0000 Subject: [PATCH] Get rid of some uninitialized value errors with apxs -q. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Submitted by: Stas Bekman Reviewed by: Heinrich G�tzger , Cliff Woolley git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95530 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ support/apxs.in | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index f1861ea272..2f2349fe45 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.37 + *) Get rid of uninitialized value errors with "apxs -q" on certain + variables. [Stas Bekman ] + *) Fix apxs to allow it to work when the build directory is somewhere besides server-root/build. PR 8453 [Jeff Trawick and a host of others] diff --git a/support/apxs.in b/support/apxs.in index e57d5ed6d8..f6f1e38f84 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -269,7 +269,7 @@ sub get_vars { ? $config_vars{$arg} : $config_vars{lc $arg}; $val =~ s/[()]//g; - $result .= eval "qq($val)"; + $result .= eval "qq($val)" if defined $val; $result .= ";;"; $ok = 1; } @@ -277,7 +277,7 @@ sub get_vars { if (exists $internal_vars{$arg} or exists $internal_vars{lc $arg}) { my $val = exists $internal_vars{$arg} ? $arg : lc $arg; $val = eval "\$CFG_$val"; - $result .= eval "qq($val)"; + $result .= eval "qq($val)" if defined $val; $result .= ";;"; $ok = 1; } -- 2.50.1