]> git.lyx.org Git - features.git/commitdiff
Fix uninitialized variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 14:53:19 +0000 (15:53 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 14:53:19 +0000 (15:53 +0100)
Fixes coverity issue 23446.

src/Buffer.cpp

index bb85fb512cfb390291047875b167c19500714f0f..3911edb41bb64d5a220ab4dff18859fc171a3021 100644 (file)
@@ -3584,7 +3584,7 @@ void Buffer::getSourceCode(odocstream & os, string const & format,
                        setMathFlavor(runparams);
                        xhtmlParagraphs(text(), *this, xs, runparams);
                } else if (runparams.flavor == OutputParams::TEXT) {
-                       bool dummy;
+                       bool dummy = false;
                        // FIXME Handles only one paragraph, unlike the others.
                        // Probably should have some routine with a signature like them.
                        writePlaintextParagraph(*this,