discover/grub: Use different paths to search for the BLS directory
[petitboot] / discover / yaboot-parser.c
index 42db95bcfbbb1ae758b4704303baa3b3992dc5d8..b06248f535f35eb0c05b3e2bf2437a1516cafbdf 100644 (file)
@@ -172,6 +172,7 @@ static void yaboot_finish(struct conf_context *conf)
                state->opt->option->is_default = true;
 
        discover_context_add_boot_option(conf->dc, state->opt);
+       state->opt = NULL;
 }
 
 static void yaboot_process_pair(struct conf_context *conf, const char *name,