]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.cpp
fix a crash when the inset containing the new word at cursor is deleted
[lyx.git] / src / mathed / MathStream.cpp
index f4ff9349b059543097e47a2bfbf6294d3183d0c8..7a13955779b6028438f3f6dbc15f2f405d2020d3 100644 (file)
@@ -107,7 +107,7 @@ WriteStream & operator<<(WriteStream & ws, docstring const & s)
        }
        ws.os() << s.substr(first);
        int lf = 0;
-       char_type lastchar;
+       char_type lastchar = 0;
        docstring::const_iterator dit = s.begin() + first;
        docstring::const_iterator end = s.end();
        for (; dit != end; ++dit) {