diff options
author | Giovanni Bechis <gbechis@apache.org> | 2020-03-23 08:08:16 +0100 |
---|---|---|
committer | Giovanni Bechis <gbechis@apache.org> | 2020-03-23 08:08:16 +0100 |
commit | 6b02123ee4cdda7b4967c53448ba58da38fb3e3e (patch) | |
tree | 10f40c6f74f16d7a48e0bbd93fc596d672fce2e8 /support | |
parent | fr doc rebuild. (diff) | |
download | apache2-6b02123ee4cdda7b4967c53448ba58da38fb3e3e.tar.xz apache2-6b02123ee4cdda7b4967c53448ba58da38fb3e3e.zip |
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
Diffstat (limited to 'support')
-rw-r--r-- | support/apxs.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/support/apxs.in b/support/apxs.in index b2705faf5b..65e1288527 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; } |