diff options
Diffstat (limited to 'discover/parser.c')
-rw-r--r-- | discover/parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/parser.c b/discover/parser.c index 462d614..0df8a73 100644 --- a/discover/parser.c +++ b/discover/parser.c @@ -18,7 +18,7 @@ struct parser __kboot_parser; struct parser __native_parser; struct parser __yaboot_parser; -static const struct parser *const parsers[] = { +static struct parser *const parsers[] = { // &__native_parser, &__kboot_parser, &__grub2_parser, @@ -116,8 +116,10 @@ void iterate_parsers(struct discover_context *ctx) for (i = 0; parsers[i]; i++) { pb_log("\ttrying parser '%s'\n", parsers[i]->name); + ctx->parser = parsers[i]; iterate_parser_files(ctx, parsers[i]); } + ctx->parser = NULL; } void parser_init(void) |