Commit 8f5aa8ef authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] menu structure fix

A menu entry was possibly inserted to high in the menu hierarchie if
the previous entry was a derived config symbol.
parent fb1e1518
...@@ -194,8 +194,8 @@ void menu_finalize(struct menu *parent) ...@@ -194,8 +194,8 @@ void menu_finalize(struct menu *parent)
} }
for (menu = parent->list; menu; menu = menu->next) for (menu = parent->list; menu; menu = menu->next)
menu_finalize(menu); menu_finalize(menu);
} else if (sym && parent->prompt) { } else if (sym) {
basedep = E_EXPR(parent->prompt->visible); basedep = parent->prompt ? E_EXPR(parent->prompt->visible) : NULL;
basedep = expr_trans_compare(basedep, E_UNEQUAL, &symbol_no); basedep = expr_trans_compare(basedep, E_UNEQUAL, &symbol_no);
basedep = expr_eliminate_dups(expr_transform(basedep)); basedep = expr_eliminate_dups(expr_transform(basedep));
last_menu = NULL; last_menu = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment