diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-19 02:12:47 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-24 10:31:31 -0300 |
commit | 42f1bd9b2228aaca4fb8a5597a3b5774f7ef6876 (patch) | |
tree | 8c056bd42ec55f2103d65af680a54bd55dc71d7f /src/main.c | |
parent | 4b6b9117b3e8b9b624c354a703f01f0980c60946 (diff) | |
download | rneovim-42f1bd9b2228aaca4fb8a5597a3b5774f7ef6876.tar.gz rneovim-42f1bd9b2228aaca4fb8a5597a3b5774f7ef6876.tar.bz2 rneovim-42f1bd9b2228aaca4fb8a5597a3b5774f7ef6876.zip |
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()
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index b2295ea0be..af63ed3c4f 100644 --- a/src/main.c +++ b/src/main.c @@ -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 |