fix(bootloader-interface): when there are no entries, don't attempt to set LoaderEntries

This commit is contained in:
2025-11-02 01:38:07 -05:00
parent eabb612330
commit 84d60e09be

View File

@@ -134,6 +134,12 @@ impl BootloaderInterface {
// Add a null terminator to the end of the entry. // Add a null terminator to the end of the entry.
data.extend_from_slice(&[0, 0]); data.extend_from_slice(&[0, 0]);
} }
// If no data was generated, we will do nothing.
if data.is_empty() {
return Ok(());
}
Self::VENDOR.set( Self::VENDOR.set(
"LoaderEntries", "LoaderEntries",
&data, &data,