[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST] ts-xen-*: Avoid use of uninitialised $r{"enable_xsm"}
Use of uninitialized value $r{"enable_xsm"} in pattern match (m//) at ./ts-xen-install line 49. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |