mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0167: Coverity warning for ignoring return value
Problem: Coverity warning for ignoring return value. Solution: Check the return value and jump if failed.
This commit is contained in:
@@ -687,6 +687,8 @@ func Test_expr7_fails()
|
|||||||
|
|
||||||
call CheckDefFailure("let x = @", "E1002:")
|
call CheckDefFailure("let x = @", "E1002:")
|
||||||
call CheckDefFailure("let x = @<", "E354:")
|
call CheckDefFailure("let x = @<", "E354:")
|
||||||
|
|
||||||
|
call CheckDefFailure("let x = ¬exist", "E113:")
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
let g:Funcrefs = [function('add')]
|
let g:Funcrefs = [function('add')]
|
||||||
|
@@ -742,6 +742,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 */
|
||||||
|
/**/
|
||||||
|
167,
|
||||||
/**/
|
/**/
|
||||||
166,
|
166,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -556,7 +556,8 @@ call_def_function(
|
|||||||
|
|
||||||
if (ga_grow(&ectx.ec_stack, 1) == FAIL)
|
if (ga_grow(&ectx.ec_stack, 1) == FAIL)
|
||||||
goto failed;
|
goto failed;
|
||||||
get_option_tv(&name, &optval, TRUE);
|
if (get_option_tv(&name, &optval, TRUE) == FAIL)
|
||||||
|
goto failed;
|
||||||
*STACK_TV_BOT(0) = optval;
|
*STACK_TV_BOT(0) = optval;
|
||||||
++ectx.ec_stack.ga_len;
|
++ectx.ec_stack.ga_len;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user