mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04: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[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1260,
|
||||||
/**/
|
/**/
|
||||||
1259,
|
1259,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1794,7 +1794,7 @@ generate_CALL(
|
|||||||
: ufunc->uf_def_status != UF_NOT_COMPILED
|
: ufunc->uf_def_status != UF_NOT_COMPILED
|
||||||
? ISN_DCALL : ISN_UCALL)) == NULL)
|
? ISN_DCALL : ISN_UCALL)) == NULL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
if (isn->isn_type == ISN_METHODCALL)
|
if (cl != NULL /* isn->isn_type == ISN_METHODCALL */)
|
||||||
{
|
{
|
||||||
isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T);
|
isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T);
|
||||||
if (isn->isn_arg.mfunc == NULL)
|
if (isn->isn_arg.mfunc == NULL)
|
||||||
|
Reference in New Issue
Block a user