mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
Replace alloc() with xmalloc() and remove immediate OOM checks
This commit is contained in:
@@ -122,7 +122,7 @@ int cin_is_cinword(char_u *line)
|
||||
int len;
|
||||
|
||||
cinw_len = (int)STRLEN(curbuf->b_p_cinw) + 1;
|
||||
cinw_buf = alloc((unsigned)cinw_len);
|
||||
cinw_buf = xmalloc(cinw_len);
|
||||
line = skipwhite(line);
|
||||
for (cinw = curbuf->b_p_cinw; *cinw; ) {
|
||||
len = copy_option_part(&cinw, cinw_buf, cinw_len, ",");
|
||||
|
Reference in New Issue
Block a user