diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-30 23:53:03 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:36:32 -0300 |
commit | a26a1697c7b3447ebb21acb1f0e6bae16d80e409 (patch) | |
tree | cf37599ac3e68459037b35ab376323aa9ce8ad07 /src/nvim/buffer.c | |
parent | cca66742ebbc13a88b809173b2362245c2ba6a55 (diff) | |
download | rneovim-a26a1697c7b3447ebb21acb1f0e6bae16d80e409.tar.gz rneovim-a26a1697c7b3447ebb21acb1f0e6bae16d80e409.tar.bz2 rneovim-a26a1697c7b3447ebb21acb1f0e6bae16d80e409.zip |
No OOM in home_replace_save()
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index db611823fc..67cd5a3094 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1908,7 +1908,7 @@ static char_u *fname_match(regprog_T *prog, char_u *name) else { /* Replace $(HOME) with '~' and try matching again. */ p = home_replace_save(NULL, name); - if (p != NULL && vim_regexec(®match, p, (colnr_T)0)) + if (vim_regexec(®match, p, (colnr_T)0)) match = name; free(p); } |