From 86279cefae74ead8c740575d294ef06e12aa7da8 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Fri, 4 Apr 2014 14:24:13 -0300 Subject: 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. --- src/message.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/message.c') 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); -- cgit