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:
@@ -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