(svn r26845) -Fix [Squirrel]: more uninitialized variables in constructors
This commit is contained in:
1
src/3rdparty/squirrel/squirrel/sqfuncproto.h
vendored
1
src/3rdparty/squirrel/squirrel/sqfuncproto.h
vendored
@@ -80,6 +80,7 @@ private:
|
|||||||
{
|
{
|
||||||
_stacksize=0;
|
_stacksize=0;
|
||||||
_bgenerator=false;
|
_bgenerator=false;
|
||||||
|
_varparams = false;
|
||||||
_ninstructions = ninstructions;
|
_ninstructions = ninstructions;
|
||||||
_literals = (SQObjectPtr*)&_instructions[ninstructions];
|
_literals = (SQObjectPtr*)&_instructions[ninstructions];
|
||||||
_nliterals = nliterals;
|
_nliterals = nliterals;
|
||||||
|
6
src/3rdparty/squirrel/squirrel/sqlexer.cpp
vendored
6
src/3rdparty/squirrel/squirrel/sqlexer.cpp
vendored
@@ -85,6 +85,12 @@ SQLexer::SQLexer(SQSharedState *ss, SQLEXREADFUNC rg, SQUserPointer up,CompilerE
|
|||||||
_lasttokenline = _currentline = 1;
|
_lasttokenline = _currentline = 1;
|
||||||
_currentcolumn = 0;
|
_currentcolumn = 0;
|
||||||
_prevtoken = -1;
|
_prevtoken = -1;
|
||||||
|
_curtoken = -1;
|
||||||
|
|
||||||
|
_svalue = NULL;
|
||||||
|
_nvalue = 0;
|
||||||
|
_fvalue = 0;
|
||||||
|
|
||||||
Next();
|
Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
src/3rdparty/squirrel/squirrel/sqstate.cpp
vendored
1
src/3rdparty/squirrel/squirrel/sqstate.cpp
vendored
@@ -539,6 +539,7 @@ SQString::SQString(const SQChar *news, SQInteger len)
|
|||||||
_len = len;
|
_len = len;
|
||||||
_hash = ::_hashstr(news,(size_t)len);
|
_hash = ::_hashstr(news,(size_t)len);
|
||||||
_next = NULL;
|
_next = NULL;
|
||||||
|
_sharedstate = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SQStringTable::Resize(SQInteger size)
|
void SQStringTable::Resize(SQInteger size)
|
||||||
|
Reference in New Issue
Block a user