summaryrefslogtreecommitdiffstats
path: root/src/vim9instr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-29 14:11:24 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-29 14:11:24 +0000
commit836137d89abfaddef688ff2c7e6a2f68d5dfca79 (patch)
tree3ffcb8ad5d3226db5459881299b20a10b76574e1 /src/vim9instr.c
parent492324e58840f441d7226e7656844e778e65d7fb (diff)
patch 9.0.1260: Coverity warns for possible NULL pointer usagev9.0.1260
Problem: Coverity warns for possible NULL pointer usage. Solution: Change the condition.
Diffstat (limited to 'src/vim9instr.c')
-rw-r--r--src/vim9instr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c
index cc0d8ad8b4..ce7342b7b7 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -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)