From: Ian Campbell Subject: [PATCH OSSTEST] ts-xen-*: Avoid use of uninitialised $r{"enable_xsm"} Date: Thu, 2 Apr 2015 08:49:28 +0100 Message-ID: <1427960968-32412-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 Cc: wei.liu2@citrix.com, Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Use of uninitialized value $r{"enable_xsm"} in pattern match (m//) at ./ts-xen-install line 49. Signed-off-by: Ian Campbell --- ts-xen-build | 2 +- ts-xen-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts-xen-build b/ts-xen-build index e757f68..a530731 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -28,7 +28,7 @@ selectbuildhost(\@ARGV); # remaining arguments are passed as targets to "make" builddirsprops(); -my $enable_xsm = $r{enable_xsm} =~ m/true/ ? 1 : 0; +my $enable_xsm = $r{enable_xsm}//'' =~ m/true/ ? 1 : 0; sub checkout () { prepbuilddirs(); diff --git a/ts-xen-install b/ts-xen-install index b3f4387..6995046 100755 --- a/ts-xen-install +++ b/ts-xen-install @@ -46,7 +46,7 @@ if (@ARGV and $ARGV[0] eq '--check') { our $ho; -my $enable_xsm = $r{enable_xsm} =~ m/true/ ? 1 : 0; +my $enable_xsm = $r{enable_xsm}//'' =~ m/true/ ? 1 : 0; my %distpath; -- 2.1.4