From: Giovanni Bechis Date: Mon, 23 Mar 2020 07:08:16 +0000 (+0000) Subject: silence an "uninitialized value" warning X-Git-Tag: 2.5.0-alpha2-ci-test-only~1568 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b02123ee4cdda7b4967c53448ba58da38fb3e3e;p=thirdparty%2Fapache%2Fhttpd.git silence an "uninitialized value" warning bz 63307 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875534 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apxs.in b/support/apxs.in index b2705faf5b7..65e1288527d 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -221,6 +221,7 @@ sub get_config_vars{ sub get_vars { my $result = ''; + my $tmp_res = ''; my $ok = 0; my $arg; foreach $arg (@_) { @@ -229,7 +230,11 @@ sub get_vars { ? $config_vars{$arg} : $config_vars{lc $arg}; $val =~ s/[()]//g; - $result .= eval "qq($val)" if defined $val; + $tmp_res = eval "qq($val)"; + if(defined $tmp_res) { + $result .= $tmp_res; + $tmp_res = ''; + } $result .= ";;"; $ok = 1; }