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:
Adrien Destugues 2014-11-18 15:51:41 +01:00
parent dc7bdd5597
commit b2a3f5b114

View File

@ -362,8 +362,8 @@ TermParse::_GuessGroundTable(int encoding)
int32
TermParse::EscParse()
{
int top;
int bottom;
int top = 0;
int bottom = 0;
char cbuf[4] = { 0 };
char dstbuf[4] = { 0 };
@ -372,9 +372,11 @@ TermParse::EscParse()
int param[NPARAM];
int nparam = 1;
for (int i = 0; i < NPARAM; i++)
param[i] = DEFAULT;
int row;
int column;
int row = 0;
int column = 0;
// default encoding system is UTF8
int *groundtable = gUTF8GroundTable;