# HG changeset patch # User Bram Moolenaar # Date 1669203905 -3600 # Node ID 433e92a6efb0d29ad4628ee1c4f0f514e3db2a19 # Parent a7543f65530473aa69207cf797504bbbd654320f patch 9.0.0927: Coverity warns for using a NULL pointer Commit: https://github.com/vim/vim/commit/96cbbe29debba25d7eec8d01955c5ac01f5c420d Author: Bram Moolenaar 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. diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/window.c b/src/window.c --- 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;