Module: kamailio
Branch: 5.2
Commit: 0b6cde5604fcbc3756311b1ddacc4d7a230d7152
URL:
https://github.com/kamailio/kamailio/commit/0b6cde5604fcbc3756311b1ddacc4d7…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-24T16:33:56+01:00
app_sqlang: fix squirrel warning: ânArgsâ may be used uninitialized in this function
(cherry picked from commit 7fad9c51f71854e0649fe76e273190e4b4f82438)
---
Modified: src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
---
Diff:
https://github.com/kamailio/kamailio/commit/0b6cde5604fcbc3756311b1ddacc4d7…
Patch:
https://github.com/kamailio/kamailio/commit/0b6cde5604fcbc3756311b1ddacc4d7…
---
diff --git a/src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
b/src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
index f3b8103185..fb6545f921 100644
--- a/src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
+++ b/src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
@@ -625,7 +625,7 @@ static SQInteger __map_array(SQArray *dest,SQArray *src,HSQUIRRELVM v)
{
SQObject &closure = stack_get(v, 2);
v->Push(closure);
- SQInteger nArgs;
+ SQInteger nArgs = 0;
if(sq_type(closure) == OT_CLOSURE) {
nArgs = _closure(closure)->_function->_nparameters;
}