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>
This commit is contained in:
committed by
Christian Brabandt
parent
ad5c9b4b11
commit
7cf31ce9c4
@ -5219,7 +5219,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref)
|
||||
{
|
||||
// generic function
|
||||
start_bracket = name;
|
||||
skip_generic_func_type_args(&name);
|
||||
if (skip_generic_func_type_args(&name) == FAIL)
|
||||
goto theend;
|
||||
}
|
||||
if (*name != NUL)
|
||||
s = NULL;
|
||||
|
||||
@ -719,6 +719,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1579,
|
||||
/**/
|
||||
1578,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user