Skip to content

Commit

Permalink
lua: remove an useless null check
Browse files Browse the repository at this point in the history
Fixes Coverity CID # 199899

(cherry picked from commit 1319c47)
  • Loading branch information
rvlad-patrascu committed Jul 21, 2020
1 parent 7fcc161 commit 927a33a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/lua/sipstate.c
Expand Up @@ -445,8 +445,7 @@ int sipstate_call(struct sip_msg *msg, const str *_fnc_s, const str *_mystr_s)

if (lua_auto_reload)
sipstate_load(NULL);
if (!fnc)
return -1;

lua_getglobal(L, fnc);
if (lua_isnil(L, -1))
{
Expand Down

0 comments on commit 927a33a

Please sign in to comment.