Skip to content

Commit

Permalink
app_sqlang: fix squirrel warning: ‘nArgs’ may be used uninitialized i…
Browse files Browse the repository at this point in the history
…n this function
  • Loading branch information
henningw committed Nov 23, 2019
1 parent daa86b2 commit 7fad9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7fad9c5

Please sign in to comment.