Module: kamailio
Branch: 5.3
Commit: 3d7809f4bc87208c3fc0261bd63ea3badf644916
URL:
https://github.com/kamailio/kamailio/commit/3d7809f4bc87208c3fc0261bd63ea3b…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-24T08:55:32+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/3d7809f4bc87208c3fc0261bd63ea3b…
Patch:
https://github.com/kamailio/kamailio/commit/3d7809f4bc87208c3fc0261bd63ea3b…
---
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;
}