Initialize Parse::theCatCode_ in constructor

Normally, it is done before tokenizing, but it does not hurt to do it
even before.

Found by Coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2016-06-09 17:11:41 +02:00
parent 76f45b351d
commit 0f5c34b8ab

View File

@ -162,6 +162,7 @@ Parser::Parser(idocstream & is, std::string const & fixedenc)
{
if (fixed_enc_)
is_.setEncoding(fixedenc);
catInit();
}
@ -173,6 +174,7 @@ Parser::Parser(string const & s)
// An idocstringstream can not change the encoding
fixed_enc_(true)
{
catInit();
}