ts-xen-*: Avoid use of uninitialised $r{"enable_xsm"}
PATCH 1/1 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 <[email protected]>
--- ts-xen-build | 2 +- ts-xen-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
ts-xen-build +1 -1
@@ -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();
ts-xen-install +1 -1
@@ -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;
Signature · 1 line
2.1.4
Ian Campbell writes ("[PATCH OSSTEST] ts-xen-*: Avoid use of uninitialised $r{"enable_xsm"}"):
Quoted 1 line
Use of uninitialized value $r{"enable_xsm"} in pattern match (m//) at ./ts-xen-install line 49.
Acked-by Ian Jackson <[email protected]>