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:
Yegappan Lakshmanan
2025-07-22 18:04:15 +02:00
committed by Christian Brabandt
parent ad5c9b4b11
commit 7cf31ce9c4
2 changed files with 4 additions and 1 deletions

View File

@ -5219,7 +5219,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref)
{ {
// generic function // generic function
start_bracket = name; start_bracket = name;
skip_generic_func_type_args(&name); if (skip_generic_func_type_args(&name) == FAIL)
goto theend;
} }
if (*name != NUL) if (*name != NUL)
s = NULL; s = NULL;

View File

@ -719,6 +719,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 */
/**/
1579,
/**/ /**/
1578, 1578,
/**/ /**/