mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
No OOM in home_replace_save()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user