From da18f51f4d5275026c985493df092cf0699de9f0 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 30 Nov 2015 11:48:31 +0000 Subject: [PATCH] target_fetchurl: Handle undefined $c{HttpProxy} Avoiding a usage of a potentially undefined variable. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 61e885a..a43feec 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, <