0
0
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:
Yegappan Lakshmanan
2022-04-03 11:22:38 +01:00
committed by Bram Moolenaar
parent 58f331a05f
commit 72bb47e38f
9 changed files with 131 additions and 18 deletions

View File

@@ -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);