commit a2425c712113329bc2d21f20d790b65357a2473a Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Mar 1 17:18:19 2017 +0100
Initialize properly TextEntry variable Not sure it fixes a bug, but it should calm down coverity. --- src/Buffer.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a9b4c05..86da237 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4645,7 +4645,7 @@ Buffer::ReadStatus Buffer::loadThisLyXFile(FileName const & fn) void Buffer::bufferErrors(TeXErrors const & terr, ErrorList & errorList) const { for (auto const & err : terr) { - TexRow::TextEntry start, end = TexRow::text_none; + TexRow::TextEntry start = TexRow::text_none, end = TexRow::text_none; int errorRow = err.error_in_line; Buffer const * buf = 0; Impl const * p = d;