[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST] ts-host-install: Ensure $dtbs is always a valid string
Otherwise on non-ARM platforms we get warnings about uninitialised values. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- ts-host-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts-host-install b/ts-host-install index 5840e27..c39c5e7 100755 --- a/ts-host-install +++ b/ts-host-install @@ -196,8 +196,9 @@ SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$ho->{Ether}", A END } - my $dtbs = "fdtdir /$d_i/dtbs" - if -e "$ho->{Tftp}{Path}/$d_i/dtbs"; + my $dtbs = ""; + $dtbs = "fdtdir /$d_i/dtbs" + if -e "fdtdir /$d_i/dtbs""$ho->{Tftp}{Path}/$d_i/dtbs"; file_simple_write_contents("$initrd_overlay.cpio", sub { contents_make_cpio($_[0], 'newc', "$initrd_overlay.d"); -- 2.1.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |