Fix SIGFPE for ACCESSKEY

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779092
This commit is contained in:
Tatsuya Kinoshita
2016-02-28 08:50:13 +09:00
parent ff21632495
commit 1cc244ff7f

2
menu.c
View File

@@ -1950,6 +1950,7 @@ accesskey_menu(Buffer *buf)
}
label[nitem] = NULL;
set_menu_frame();
new_option_menu(&menu, label, &key, NULL);
menu.initial = 0;
@@ -2061,7 +2062,6 @@ list_menu(Buffer *buf)
}
label[nitem] = NULL;
set_menu_frame();
set_menu_frame();
new_option_menu(&menu, label, &key, NULL);