Module: kamailio
Branch: master
Commit: 7fad9c51f71854e0649fe76e273190e4b4f82438
URL:
https://github.com/kamailio/kamailio/commit/7fad9c51f71854e0649fe76e273190e…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-11-23T18:53:17+01:00
app_sqlang: fix squirrel warning: ânArgsâ may be used uninitialized in this function
---
Modified: src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
---
Diff:
https://github.com/kamailio/kamailio/commit/7fad9c51f71854e0649fe76e273190e…
Patch:
https://github.com/kamailio/kamailio/commit/7fad9c51f71854e0649fe76e273190e…
---
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;
}