From a2425c712113329bc2d21f20d790b65357a2473a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 1 Mar 2017 17:18:19 +0100 Subject: [PATCH] Initialize properly TextEntry variable Not sure it fixes a bug, but it should calm down coverity. --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a9b4c05e72..86da237eec 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; -- 2.39.2