mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
No OOM error condition in ga_concat_strings(), concat_fnames(), concat_str()
- xmallocz() is not static anymore. There are many use cases for this function in the codebase and we should start using it. - Simpler types in ga_concat_strings()
This commit is contained in:

committed by
Thiago de Arruda

parent
4b6b9117b3
commit
42f1bd9b22
@@ -1433,10 +1433,8 @@ scripterror:
|
||||
char_u *r;
|
||||
|
||||
r = concat_fnames(p, path_tail(alist_name(&GARGLIST[0])), TRUE);
|
||||
if (r != NULL) {
|
||||
vim_free(p);
|
||||
p = r;
|
||||
}
|
||||
vim_free(p);
|
||||
p = r;
|
||||
}
|
||||
|
||||
#ifdef USE_FNAME_CASE
|
||||
|
Reference in New Issue
Block a user