commit | 96cbbe29debba25d7eec8d01955c5ac01f5c420d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Nov 23 11:36:22 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Nov 23 11:36:22 2022 +0000 |
tree | d299c68fdc517fa0b94d2b3deaa4d0eebd9e199b | |
parent | bc222152d8dea252aa5f1fa24b5536ed269feb92 [diff] [blame] |
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/window.c b/src/window.c index 48eabda..6816697 100644 --- a/src/window.c +++ b/src/window.c
@@ -3134,7 +3134,7 @@ #endif } - if (trigger_scroll) + if (trigger_scroll && scroll_dict != NULL) { #ifdef FEAT_EVAL save_v_event_T save_v_event;