mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +00:00
Replace alloc() with xmalloc() and remove immediate OOM checks
This commit is contained in:
@@ -462,7 +462,7 @@ add_menu_path (
|
||||
}
|
||||
|
||||
if (c != 0) {
|
||||
menu->strings[i] = alloc((unsigned)(STRLEN(call_data) + 5 ));
|
||||
menu->strings[i] = xmalloc(STRLEN(call_data) + 5 );
|
||||
menu->strings[i][0] = c;
|
||||
if (d == 0)
|
||||
STRCPY(menu->strings[i] + 1, call_data);
|
||||
|
Reference in New Issue
Block a user