forked from aniani/vim
patch 9.1.1302: Coverity warns about using uninitialized value
Problem: Coverity warns about using uninitialized value (Coverity, Tony Mechelynck, after v9.1.1301) Solution: initialize callback pointer to NULL Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -6427,7 +6427,7 @@ cpt_compl_refresh(void)
|
||||
#ifdef FEAT_COMPL_FUNC
|
||||
char_u *cpt;
|
||||
char_u *p;
|
||||
callback_T *cb;
|
||||
callback_T *cb = NULL;
|
||||
|
||||
// Make the completion list linear (non-cyclic)
|
||||
ins_compl_make_linear();
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1302,
|
||||
/**/
|
||||
1301,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user