Skip to contentSkip to conversation

Debian: Avoid uninitialised string warn when getting host firmware property

PATCH In review Ian Campbell 2 participants 2 messages Sep 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Debian: Avoid uninitialised string warn when getting host firmware property

---
 Osstest/Debian.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/Debian.pm +1 -1
index 8675922..a8b62ca 100644
@@ -1169,7 +1169,7 @@ END
 
     preseed_microcode($ho,$sfx);
 
-    if (get_host_property($ho, "firmware") eq "uefi") {
+    if (get_host_property($ho, "firmware",'') eq "uefi") {
 	die unless $ho->{Suite} =~ m/jessie/;
 	# Prevent grub-install from making a new Debian boot entry, so
 	# we always reboot from PXE. Debian bug #789798 proposes a
Signature · 1 line
2.5.1