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

Miklos Vajna vmiklos at collabora.co.uk
Tue Apr 4 14:02:05 UTC 2017


 xmlscript/source/xmldlg_imexp/xmldlg_export.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 843cb68d00146d8ef18a4fa6f8316808056fd823
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Apr 4 16:01:06 2017 +0200

    xmlscript: fix -Werror=maybe-uninitialized
    
    Change-Id: Ifcde2202fcb2cfa1dd226697910c1fbd219a3f83

diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 0e3bc40c3b0b..742509a14957 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -1021,7 +1021,7 @@ void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUSt
 
         if (aImageScaleMode.getValueTypeClass() == TypeClass_SHORT)
         {
-            sal_Int16 nImageScaleMode;
+            sal_Int16 nImageScaleMode = 0;
             aImageScaleMode >>= nImageScaleMode;
 
             switch(nImageScaleMode)


More information about the Libreoffice-commits mailing list