From: Cliff Woolley Date: Wed, 5 Jun 2002 19:08:55 +0000 (+0000) Subject: Get rid of some uninitialized value errors with apxs -q. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d0a5fd25953e6b46101759e41fcd6ff9d6b814c;p=apache Get rid of some uninitialized value errors with apxs -q. 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 --- 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; }