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:
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
927,
|
||||||
/**/
|
/**/
|
||||||
926,
|
926,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -3134,7 +3134,7 @@ may_trigger_win_scrolled_resized(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trigger_scroll)
|
if (trigger_scroll && scroll_dict != NULL)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
save_v_event_T save_v_event;
|
save_v_event_T save_v_event;
|
||||||
|
Reference in New Issue
Block a user