提交 866af407 编写于 作者: A Andrej Gelenberg 提交者: Michal Marek

nconfig: Fix segfault when menu is empty

nconf crush with segfault if press right arrow in empty menu.
Signed-off-by: NAndrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 a64b44ea
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册