mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.0.1260: Coverity warns for possible NULL pointer usage
Problem: Coverity warns for possible NULL pointer usage. Solution: Change the condition.
This commit is contained in:
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1260,
|
||||
/**/
|
||||
1259,
|
||||
/**/
|
||||
|
@ -1794,7 +1794,7 @@ generate_CALL(
|
||||
: ufunc->uf_def_status != UF_NOT_COMPILED
|
||||
? ISN_DCALL : ISN_UCALL)) == NULL)
|
||||
return FAIL;
|
||||
if (isn->isn_type == ISN_METHODCALL)
|
||||
if (cl != NULL /* isn->isn_type == ISN_METHODCALL */)
|
||||
{
|
||||
isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T);
|
||||
if (isn->isn_arg.mfunc == NULL)
|
||||
|
Reference in New Issue
Block a user