mirror of
https://github.com/neovim/neovim.git
synced 2026-07-13 21:00:42 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user