lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6576] Initialize variables explicitly to avoid warnings (


From: gchicares
Subject: [lmi-commits] [6576] Initialize variables explicitly to avoid warnings (VZ)
Date: Wed, 11 May 2016 17:00:09 +0000 (UTC)

Revision: 6576
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6576
Author:   chicares
Date:     2016-05-11 17:00:09 +0000 (Wed, 11 May 2016)
Log Message:
-----------
Initialize variables explicitly to avoid warnings (VZ)

Modified Paths:
--------------
    lmi/trunk/interest_rates.cpp

Modified: lmi/trunk/interest_rates.cpp
===================================================================
--- lmi/trunk/interest_rates.cpp        2016-05-11 16:50:12 UTC (rev 6575)
+++ lmi/trunk/interest_rates.cpp        2016-05-11 17:00:09 UTC (rev 6576)
@@ -192,8 +192,8 @@
     annual_net_rate .resize(length);
     monthly_net_rate.resize(length);
 
-    double cached_annual_net_rate;
-    double cached_monthly_net_rate;
+    double cached_annual_net_rate     = 0.0;
+    double cached_monthly_net_rate    = 0.0;
 
     double previous_annual_gross_rate = 0.0;
     double previous_spread            = 0.0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]