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

Miklos Vajna vmiklos at collabora.co.uk
Tue Apr 4 12:26:50 UTC 2017


 scaddins/source/pricing/pricing.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1fb21083b265ea31fd9859737bcb3cd5d4ffaf6f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Apr 4 14:26:09 2017 +0200

    scaddins: silence -Werror=maybe-uninitialized
    
    Change-Id: Idbbd6490c954f50d3baa7a72cd89f081d1316e6b

diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index 55e9e9ac54a9..b3a1a85612c3 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -572,7 +572,7 @@ double SAL_CALL ScaPricingAddIn::getOptProbInMoney( double spot, double vol,
             const uno::Any& strikeval, const uno::Any& put_call )
 {
     bs::types::PutCall pc=bs::types::Call;
-    double  K;
+    double  K = 0;
 
     // read and check input values
     if( spot<=0.0 || vol<=0.0 || T<0.0 ||


More information about the Libreoffice-commits mailing list