diff options
author | Andrej Gelenberg <andrej.gelenberg@udo.edu> | 2010-08-02 09:59:31 (GMT) |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-12 22:34:15 (GMT) |
commit | 866af407dad3f2202e5d5d717ebd6156ccc33cdd (patch) | |
tree | 56e902d33f8e3dd814053f91bfd3c0a34aa8db6d /scripts | |
parent | a64b44ead002ba15fdf841106a6fd344b8dd46d8 (diff) | |
download | linux-866af407dad3f2202e5d5d717ebd6156ccc33cdd.tar.xz |
nconfig: Fix segfault when menu is empty
nconf crush with segfault if press right arrow in empty menu.
Signed-off-by: Andrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/nconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 762caf8..2ba71bc 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -676,6 +676,8 @@ static void *item_data(void) struct mitem *mcur; cur = current_item(curses_menu); + if (!cur) + return NULL; mcur = (struct mitem *) item_userptr(cur); return mcur->usrptr; |