diff src/buffer.c @ 28289:cdaff4db7760 v8.2.4670

patch 8.2.4670: memory allocation failures for new tab page not tested Commit: https://github.com/vim/vim/commit/72bb47e38f6805050ed6d969f17591bed71f83d4 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Apr 3 11:22:38 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Apr 2022 12:30:03 +0200
parents a4aad5142959
children 427600f3b1c5
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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);