summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-04-04 14:26:09 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-04-04 14:26:13 +0200
commit1fb21083b265ea31fd9859737bcb3cd5d4ffaf6f (patch)
tree486b35262d88bab7ef72b054039d0ddf9f24739d /scaddins
parentacbb7e3243afec515bf98b2b34454afc5320bf66 (diff)
scaddins: silence -Werror=maybe-uninitialized
Change-Id: Idbbd6490c954f50d3baa7a72cd89f081d1316e6b
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/pricing/pricing.cxx2
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 ||