From: Ian Campbell Subject: [PATCH OSSTEST] target_fetchurl: Handle undefined $c{HttpProxy} Date: Mon, 30 Nov 2015 11:48:31 +0000 Message-ID: <1448884111-23600-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Avoiding a usage of a potentially undefined variable. Signed-off-by: Ian Campbell --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 18b03b4..28ac572 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1823,7 +1823,7 @@ END sub target_fetchurl($$$;$) { my ($ho, $url, $path, $timeo) = @_; $timeo ||= 2000; - my $useproxy = "export http_proxy=$c{HttpProxy};" if $c{HttpProxy}; + my $useproxy = $c{HttpProxy} ? "export http_proxy=$c{HttpProxy};" : ""; target_cmd_root($ho, <