diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2003-03-15 01:17:12 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-15 01:17:12 -0800 |
commit | 8f5aa8efddb24a0e46396a037cc1b2f089f23f41 (patch) | |
tree | 40456b8b392fbd3aca556bdb1ff552981ea4afb5 /scripts | |
parent | fb1e151835e62917eeb93ed2a5f6cef9d8392bf5 (diff) | |
download | history-8f5aa8efddb24a0e46396a037cc1b2f089f23f41.tar.gz |
[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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index abfe8d72fbfefe..81d764e7230d1e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -194,8 +194,8 @@ void menu_finalize(struct menu *parent) } for (menu = parent->list; menu; menu = menu->next) menu_finalize(menu); - } else if (sym && parent->prompt) { - basedep = E_EXPR(parent->prompt->visible); + } else if (sym) { + basedep = parent->prompt ? E_EXPR(parent->prompt->visible) : NULL; basedep = expr_trans_compare(basedep, E_UNEQUAL, &symbol_no); basedep = expr_eliminate_dups(expr_transform(basedep)); last_menu = NULL; |