diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-04 14:24:13 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-11 12:57:59 -0300 |
commit | 86279cefae74ead8c740575d294ef06e12aa7da8 (patch) | |
tree | b0be9f06cb3aec89629c8ab8bb60a6cddce010ae /src/message.c | |
parent | 3fcdb2ab29f6285b4b5b4fd706db54a98b1a773f (diff) | |
download | rneovim-86279cefae74ead8c740575d294ef06e12aa7da8.tar.gz rneovim-86279cefae74ead8c740575d294ef06e12aa7da8.tar.bz2 rneovim-86279cefae74ead8c740575d294ef06e12aa7da8.zip |
Remove more OOM error handling code
From the functions:
- ExpandBufnames
- buf_modname()
- do_autocmd_event()
- ff_create_stack_element()
- ff_get_visited_list()
- ins_complete()
- msg_show_console_dialog()
- prt_find_resource()
- vim_findfile_init()
TODO: refactor msg_show_console_dialog() to make sure it doesn't ever return
NULL.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/message.c b/src/message.c index 6553e0bd5f..5ec87c6297 100644 --- a/src/message.c +++ b/src/message.c @@ -2941,12 +2941,8 @@ static char_u *msg_show_console_dialog(char_u *message, char_u *buttons, int dfl */ vim_free(confirm_msg); confirm_msg = alloc(len); - if (confirm_msg == NULL) - return NULL; *confirm_msg = NUL; hotk = alloc(lenhotkey); - if (hotk == NULL) - return NULL; *confirm_msg = '\n'; STRCPY(confirm_msg + 1, message); |