]> git.lyx.org Git - lyx.git/commitdiff
Initialize properly TextEntry variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 16:18:19 +0000 (17:18 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2017 16:18:19 +0000 (17:18 +0100)
Not sure it fixes a bug, but it should calm down coverity.

src/Buffer.cpp

index a9b4c05e7234d78397b1d5793538e0b061d64315..86da237eec9bb3736dfa9f573b0064a287b7884f 100644 (file)
@@ -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;