From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 15:11:41 +0000 (+0200) Subject: Initialize Parse::theCatCode_ in constructor X-Git-Tag: 2.3.0alpha1~1526 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0f5c34b8abcaf5bf4ae2df665b2f5aed40229502;p=features.git Initialize Parse::theCatCode_ in constructor Normally, it is done before tokenizing, but it does not hurt to do it even before. Found by Coverity. --- diff --git a/src/tex2lyx/Parser.cpp b/src/tex2lyx/Parser.cpp index 69e3460f45..895fca221e 100644 --- a/src/tex2lyx/Parser.cpp +++ b/src/tex2lyx/Parser.cpp @@ -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(); }