1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-11-23 11:36:22 +00:00
parent bc222152d8
commit 96cbbe29de
2 changed files with 3 additions and 1 deletions

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
927,
/**/
926,
/**/

View File

@@ -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;