From 84d60e09beeeec768333880bc4e012ffc23a40db Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 2 Nov 2025 01:38:07 -0500 Subject: [PATCH] fix(bootloader-interface): when there are no entries, don't attempt to set LoaderEntries --- src/integrations/bootloader_interface.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/integrations/bootloader_interface.rs b/src/integrations/bootloader_interface.rs index 1e30cd0..07bd25b 100644 --- a/src/integrations/bootloader_interface.rs +++ b/src/integrations/bootloader_interface.rs @@ -134,6 +134,12 @@ impl BootloaderInterface { // Add a null terminator to the end of the entry. data.extend_from_slice(&[0, 0]); } + + // If no data was generated, we will do nothing. + if data.is_empty() { + return Ok(()); + } + Self::VENDOR.set( "LoaderEntries", &data,