Skip to content

Commit 7cf31ce

Browse files
yegappanchrisbra
authored andcommitted
patch 9.1.1579: Coverity complains about unchecked return value
Problem: Coverity complains about unchecked return value in common_function() (after v9.1.1577) Solution: Check the return value of skip_generic_func_type_args() and return in case of an error (Yegappan Lakshmanan) closes: #17818 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent ad5c9b4 commit 7cf31ce

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/evalfunc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5219,7 +5219,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref)
52195219
{
52205220
// generic function
52215221
start_bracket = name;
5222-
skip_generic_func_type_args(&name);
5222+
if (skip_generic_func_type_args(&name) == FAIL)
5223+
goto theend;
52235224
}
52245225
if (*name != NUL)
52255226
s = NULL;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
1579,
722724
/**/
723725
1578,
724726
/**/

0 commit comments

Comments
 (0)