mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0558: Coverity warns for possibly using NULL pointer
Problem: Coverity warns for possibly using NULL pointer. Solution: Only use "evalarg" when not NULL.
This commit is contained in:
@@ -6380,7 +6380,8 @@ handle_subscript(
|
||||
**arg = NUL;
|
||||
|
||||
idx = find_exported(rettv->vval.v_number, exp_name, &ufunc, &type,
|
||||
evalarg->eval_cctx, evalarg->eval_cstack, verbose);
|
||||
evalarg == NULL ? NULL : evalarg->eval_cctx,
|
||||
evalarg == NULL ? NULL : evalarg->eval_cstack, verbose);
|
||||
**arg = cc;
|
||||
|
||||
if (idx < 0 && ufunc == NULL)
|
||||
|
Reference in New Issue
Block a user