Terminal: initialize some variables
This is harmless, the sequence of states ensures they would be initialized when needed anyway, but Coverity decides otherwise. Fixes #10131 / CID743879.
This commit is contained in:
@@ -362,8 +362,8 @@ TermParse::_GuessGroundTable(int encoding)
|
|||||||
int32
|
int32
|
||||||
TermParse::EscParse()
|
TermParse::EscParse()
|
||||||
{
|
{
|
||||||
int top;
|
int top = 0;
|
||||||
int bottom;
|
int bottom = 0;
|
||||||
|
|
||||||
char cbuf[4] = { 0 };
|
char cbuf[4] = { 0 };
|
||||||
char dstbuf[4] = { 0 };
|
char dstbuf[4] = { 0 };
|
||||||
@@ -372,9 +372,11 @@ TermParse::EscParse()
|
|||||||
|
|
||||||
int param[NPARAM];
|
int param[NPARAM];
|
||||||
int nparam = 1;
|
int nparam = 1;
|
||||||
|
for (int i = 0; i < NPARAM; i++)
|
||||||
|
param[i] = DEFAULT;
|
||||||
|
|
||||||
int row;
|
int row = 0;
|
||||||
int column;
|
int column = 0;
|
||||||
|
|
||||||
// default encoding system is UTF8
|
// default encoding system is UTF8
|
||||||
int *groundtable = gUTF8GroundTable;
|
int *groundtable = gUTF8GroundTable;
|
||||||
|
|||||||
Reference in New Issue
Block a user