Skip to content

Commit 836137d

Browse files
committed
patch 9.0.1260: Coverity warns for possible NULL pointer usage
Problem: Coverity warns for possible NULL pointer usage. Solution: Change the condition.
1 parent 492324e commit 836137d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1260,
698700
/**/
699701
1259,
700702
/**/

src/vim9instr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ generate_CALL(
17941794
: ufunc->uf_def_status != UF_NOT_COMPILED
17951795
? ISN_DCALL : ISN_UCALL)) == NULL)
17961796
return FAIL;
1797-
if (isn->isn_type == ISN_METHODCALL)
1797+
if (cl != NULL /* isn->isn_type == ISN_METHODCALL */)
17981798
{
17991799
isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T);
18001800
if (isn->isn_arg.mfunc == NULL)

0 commit comments

Comments
 (0)