vim-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.

96cbbe29de

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2026-06-15 21:37:35 -04:00
parent 90f214ff1e
commit e8ab90dcc3

View File

@@ -6124,7 +6124,7 @@ void may_trigger_win_scrolled_resized(void)
restore_v_event(v_event, &save_v_event);
}
if (trigger_scroll) {
if (trigger_scroll && scroll_dict != NULL) {
save_v_event_T save_v_event;
dict_T *v_event = get_v_event(&save_v_event);