From 96cbbe29debba25d7eec8d01955c5ac01f5c420d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 23 Nov 2022 11:36:22 +0000 Subject: [PATCH] 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. --- src/version.c | 2 ++ src/window.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index c9e3a2ef6..6e0d886b0 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 927, /**/ 926, /**/ diff --git a/src/window.c b/src/window.c index 48eabdab5..6816697de 100644 --- 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; -- 2.40.0