diff options
author | James McCoy <jamessan@jamessan.com> | 2022-01-24 06:28:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 06:28:09 -0500 |
commit | 1907a9481423ccf4433f8184bbfdc633589e43f5 (patch) | |
tree | acba04413b8213d8f19e3a46e64d24c6877fc1bd /src/nvim/api/private | |
parent | 7e2ce35e3b7f8be5e8d01b44c2fdba0b4e23fbd4 (diff) | |
parent | d224957d30654dfa7fac7732b81f6a1b495a418b (diff) | |
download | rneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.tar.gz rneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.tar.bz2 rneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.zip |
Merge pull request #17143 from jamessan/coverity-fixes
Various Coverity fixes
Diffstat (limited to 'src/nvim/api/private')
-rw-r--r-- | src/nvim/api/private/converter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/converter.c b/src/nvim/api/private/converter.c index e370c0d4d4..3d4ff202fe 100644 --- a/src/nvim/api/private/converter.c +++ b/src/nvim/api/private/converter.c @@ -233,6 +233,7 @@ Object vim_to_object(typval_T *obj) { if (obj->v_type == VAR_FUNC) { ufunc_T *fp = find_func(obj->vval.v_string); + assert(fp != NULL); if (fp->uf_cb == nlua_CFunction_func_call) { LuaRef ref = api_new_luaref(((LuaCFunctionState *)fp->uf_cb_state)->lua_callable.func_ref); return LUAREF_OBJ(ref); |