[Libreoffice-commits] core.git: starmath/source

Caolán McNamara caolanm at redhat.com
Thu Dec 28 21:31:50 UTC 2017


 starmath/source/mathmlattr.hxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4da1a70fe0511172f3cf4a22594a9f94c9c0a73f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 28 21:29:53 2017 +0000

    ofz#4765: Conditional jump or move depends on uninitialised value
    
    Change-Id: Ic8a4fd6cc62c7257f714e2ce2f155f60aa04aa2f
    Reviewed-on: https://gerrit.libreoffice.org/47157
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/starmath/source/mathmlattr.hxx b/starmath/source/mathmlattr.hxx
index 42948f43ccdf..a794e2f482a6 100644
--- a/starmath/source/mathmlattr.hxx
+++ b/starmath/source/mathmlattr.hxx
@@ -43,6 +43,10 @@ struct MathMLAttributeLengthValue
 {
     Fraction aNumber;
     MathMLLengthUnit eUnit;
+    MathMLAttributeLengthValue()
+        : eUnit(MathMLLengthUnit::None)
+    {
+    }
 };
 
 sal_Int32 ParseMathMLAttributeLengthValue(const OUString &rStr, MathMLAttributeLengthValue& rV);


More information about the Libreoffice-commits mailing list