changeset 31186:433e92a6efb0 v9.0.0927

patch 9.0.0927: Coverity warns for using a NULL pointer Commit: https://github.com/vim/vim/commit/96cbbe29debba25d7eec8d01955c5ac01f5c420d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 23 11:36:22 2022 +0000 patch 9.0.0927: Coverity warns for using a NULL pointer Problem: Coverity warns for using a NULL pointer. Solution: Check for memory allocaion failure.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Nov 2022 12:45:05 +0100
parents a7543f655304
children d18b1f43cfd7
files src/version.c src/window.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    927,
+/**/
     926,
 /**/
     925,
--- a/src/window.c
+++ b/src/window.c
@@ -3134,7 +3134,7 @@ may_trigger_win_scrolled_resized(void)
 #endif
     }
 
-    if (trigger_scroll)
+    if (trigger_scroll && scroll_dict != NULL)
     {
 #ifdef FEAT_EVAL
 	save_v_event_T  save_v_event;