mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Replace alloc() with xmalloc() and remove immediate OOM checks
This commit is contained in:
@@ -1417,7 +1417,7 @@ void copy_viminfo_marks(vir_T *virp, FILE *fp_out, int count, int eof, int flags
|
||||
pos_T pos;
|
||||
list_T *list = NULL;
|
||||
|
||||
name_buf = alloc(LSIZE);
|
||||
name_buf = xmalloc(LSIZE);
|
||||
*name_buf = NUL;
|
||||
|
||||
if (fp_out == NULL && (flags & (VIF_GET_OLDFILES | VIF_FORCEIT))) {
|
||||
|
Reference in New Issue
Block a user