diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-12 14:27:20 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-19 14:50:25 -0300 |
commit | 1a2364f74e78f82e92e95e387ce18fbbfe528a74 (patch) | |
tree | 0b728f060171c2deeeedad5a113f51cfb9a155f6 /src/nvim/file_search.c | |
parent | 8551f4f4c7724b47a28f5d9300c193b006a0282a (diff) | |
download | rneovim-1a2364f74e78f82e92e95e387ce18fbbfe528a74.tar.gz rneovim-1a2364f74e78f82e92e95e387ce18fbbfe528a74.tar.bz2 rneovim-1a2364f74e78f82e92e95e387ce18fbbfe528a74.zip |
Remove OOM checks: ff_create_stack_element()
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r-- | src/nvim/file_search.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index ffc6497aca..0ff02b85bf 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -520,9 +520,6 @@ vim_findfile_init ( search_ctx->ffsc_wc_path, level, 0); - if (sptr == NULL) - goto error_return; - ff_push(search_ctx, sptr); search_ctx->ffsc_file_to_search = vim_strsave(filename); return search_ctx; @@ -949,8 +946,6 @@ char_u *vim_findfile(void *search_ctx_arg) /* create a new stack entry */ sptr = ff_create_stack_element(file_path, search_ctx->ffsc_wc_path, search_ctx->ffsc_level, 0); - if (sptr == NULL) - break; ff_push(search_ctx, sptr); } else break; |