mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4670: memory allocation failures for new tab page not tested
Problem: Memory allocation failures for new tab page not tested. Solution: Add tests with failing memory allocation. (Yegappan Lakshmanan, closes #10067)
This commit is contained in:
committed by
Bram Moolenaar
parent
58f331a05f
commit
72bb47e38f
@@ -2093,7 +2093,7 @@ buflist_new(
|
||||
}
|
||||
#ifdef FEAT_EVAL
|
||||
// init b: variables
|
||||
buf->b_vars = dict_alloc_id(aid_buflistnew_bvars);
|
||||
buf->b_vars = dict_alloc_id(aid_newbuf_bvars);
|
||||
if (buf->b_vars == NULL)
|
||||
{
|
||||
vim_free(ffname);
|
||||
|
Reference in New Issue
Block a user