summaryrefslogtreecommitdiff
path: root/load-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'load-options.c')
-rw-r--r--load-options.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/load-options.c b/load-options.c
index a8c6e1a3..8b92e37f 100644
--- a/load-options.c
+++ b/load-options.c
@@ -447,10 +447,12 @@ parse_load_options(EFI_LOADED_IMAGE *li)
/*
* Set up the name of the alternative loader and the LoadOptions for
- * the loader
+ * the loader if it's not the empty string.
*/
if (loader_str) {
- second_stage = loader_str;
+ if (*loader_str) {
+ second_stage = loader_str;
+ }
load_options = remaining;
load_options_size = remaining_size;
}