diff mbox

[Xen-devel,OSSTEST] ts-host-install: Ensure $dtbs is always a valid string

Message ID 1415526555-3609-1-git-send-email-ian.campbell@citrix.com
State New
Headers show

Commit Message

Ian Campbell Nov. 9, 2014, 9:49 a.m. UTC
Otherwise on non-ARM platforms we get warnings about uninitialised values.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 ts-host-install | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

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");