]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_lua] scan-build: Called C++ object pointer is null (Dbh_test_reactive)
authorAndrey Volk <andywolk@gmail.com>
Fri, 26 Feb 2021 20:34:25 +0000 (23:34 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:24:09 +0000 (20:24 +0300)
src/mod/languages/mod_lua/hack.diff
src/mod/languages/mod_lua/mod_lua_wrap.cpp

index 907efb0d7e9d5be1886e20494413b2e61bb3bf61..95ec620feb156524b454709e33f623cf3ffe46d1 100644 (file)
    result = (bool)(arg1)->test_reactive(arg2,arg3,arg4);
    lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
    return SWIG_arg;
+@@ -9516,6 +9516,7 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) {
+   
+   arg2 = (char *)lua_tostring(L, 2);
+   arg3 = (char *)lua_tostring(L, 3);
++  switch_assert(arg1);
+   result = (bool)(arg1)->test_reactive(arg2,arg3);
+   lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+   return SWIG_arg;
+@@ -9543,6 +9544,7 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) {
+   }
+   
+   arg2 = (char *)lua_tostring(L, 2);
++  switch_assert(arg1);
+   result = (bool)(arg1)->test_reactive(arg2);
+   lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+   return SWIG_arg;
 @@ -9672,6 +9673,7 @@ static int _wrap_Dbh_query(lua_State* L) {
        (&arg3)->idx = 3;
      }
index 7d91ba33ba33d0994bed4096060fb49e9e1fa44c..93ba825557f781bccdc172445852186646c8e7ac 100644 (file)
@@ -9548,6 +9548,7 @@ static int _wrap_Dbh_test_reactive__SWIG_1(lua_State* L) {
   
   arg2 = (char *)lua_tostring(L, 2);
   arg3 = (char *)lua_tostring(L, 3);
+  switch_assert(arg1);
   result = (bool)(arg1)->test_reactive(arg2,arg3);
   lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
   return SWIG_arg;
@@ -9575,6 +9576,7 @@ static int _wrap_Dbh_test_reactive__SWIG_2(lua_State* L) {
   }
   
   arg2 = (char *)lua_tostring(L, 2);
+  switch_assert(arg1);
   result = (bool)(arg1)->test_reactive(arg2);
   lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
   return SWIG_arg;