commit caa93de4455da6ca16b2d4e89f7e61dfe346c88b
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Sat Sep 12 22:47:09 2015 +0200

    Initialize MathData members
    
    Coverity issues 23381 and 23436

diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp
index d591bfa..bcc9895 100644
--- a/src/mathed/MathData.cpp
+++ b/src/mathed/MathData.cpp
@@ -48,7 +48,8 @@ namespace lyx {
 
 
 MathData::MathData(Buffer * buf, const_iterator from, const_iterator to)
-       : base_type(from, to), buffer_(buf)
+       : base_type(from, to), minasc_(0), mindes_(0), slevel_(0),
+         sshift_(0), kerning_(0), buffer_(buf)
 {}
 
 
diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h
index e216941..0419b59 100644
--- a/src/mathed/MathData.h
+++ b/src/mathed/MathData.h
@@ -66,7 +66,8 @@ public:
 
 public:
        ///
-       MathData(Buffer * buf = 0) : buffer_(buf) {}
+       MathData(Buffer * buf = 0) : minasc_(0), mindes_(0), slevel_(0),
+                                    sshift_(0), kerning_(0), buffer_(buf) {}
        ///
        MathData(Buffer * buf, const_iterator from, const_iterator to);
        ///

Reply via email to