mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
Replace lalloc() with xmalloc()
This commit is contained in:

committed by
Justin M. Keyes

parent
973baa2a06
commit
8704a5832b
@@ -4359,9 +4359,7 @@ static void insert_sign(
|
||||
int typenr /* typenr of sign we are adding */
|
||||
)
|
||||
{
|
||||
signlist_T *newsign;
|
||||
|
||||
newsign = (signlist_T *)lalloc((long_u)sizeof(signlist_T), FALSE);
|
||||
signlist_T *newsign = xmalloc(sizeof(signlist_T));
|
||||
newsign->id = id;
|
||||
newsign->lnum = lnum;
|
||||
newsign->typenr = typenr;
|
||||
|
Reference in New Issue
Block a user