mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.0595: Coverity warning for not checking return value
Problem: Coverity warning for not checking return value of dict_add(). Solution: Check the return value for FAIL.
This commit is contained in:
@@ -4722,7 +4722,8 @@ get_errorlist_properties(win_T *wp, dict_T *what, dict_T *retdict)
|
||||
if (di != NULL)
|
||||
{
|
||||
copy_tv(qi->qf_lists[qf_idx].qf_ctx, &di->di_tv);
|
||||
dict_add(retdict, di);
|
||||
if (dict_add(retdict, di) == FAIL)
|
||||
dictitem_free(di);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
595,
|
||||
/**/
|
||||
594,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user