mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
Remove OOM error handling code after ga_grow() calls
This commit is contained in:

committed by
Thiago de Arruda

parent
457bb26151
commit
f6b0e335e1
@@ -1426,8 +1426,8 @@ scripterror:
|
||||
|
||||
|
||||
/* Add the file to the global argument list. */
|
||||
if (ga_grow(&global_alist.al_ga, 1) == FAIL
|
||||
|| (p = vim_strsave((char_u *)argv[0])) == NULL)
|
||||
ga_grow(&global_alist.al_ga, 1);
|
||||
if ((p = vim_strsave((char_u *)argv[0])) == NULL)
|
||||
mch_exit(2);
|
||||
if (parmp->diff_mode && os_isdir(p) && GARGCOUNT > 0
|
||||
&& !os_isdir(alist_name(&GARGLIST[0]))) {
|
||||
|
Reference in New Issue
Block a user