projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64b44e
)
nconfig: Fix segfault when menu is empty
author
Andrej Gelenberg
<andrej.gelenberg@udo.edu>
Mon, 2 Aug 2010 09:59:31 +0000
(11:59 +0200)
committer
Michal Marek
<mmarek@suse.cz>
Thu, 12 Aug 2010 22:34:15 +0000
(
00:34
+0200)
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>
scripts/kconfig/nconf.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/nconf.c
b/scripts/kconfig/nconf.c
index 762caf80ce37d3822d43bf0a151ffcf8b8a17d21..2ba71bcd38e65381aa347e093a2dc7b338d03dc0 100644
(file)
--- 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;