From 0f5c34b8abcaf5bf4ae2df665b2f5aed40229502 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 17:11:41 +0200 Subject: [PATCH] Initialize Parse::theCatCode_ in constructor Normally, it is done before tokenizing, but it does not hurt to do it even before. Found by Coverity. --- src/tex2lyx/Parser.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.2