diff src/window.c @ 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 b7e381d7e8b8
children 02b719cd27c6
line wrap: on
line diff
--- 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;