diff options
-rw-r--r-- | scaddins/source/pricing/pricing.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 || |