From: Mika Laitio Date: Sun, 13 Mar 2011 18:05:02 +0000 (+0200) Subject: remove warning from possible uninitialized variable X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=167c760cfc2596e9a8e7535249faede7b7239c25;p=libplp.git remove warning from possible uninitialized variable Signed-off-by: Mika Laitio --- diff --git a/src/StoreCache.cc b/src/StoreCache.cc index 6e19690..3506292 100644 --- a/src/StoreCache.cc +++ b/src/StoreCache.cc @@ -148,6 +148,7 @@ DataRange *StoreCache::get_mean(EnumSummaryPeriod period_type_param) { cur_data = NULL; res_data = NULL; cnt = 0; + val_cnt = 0; while(cur_date->before(max_date)) { if (period_type_param == PERIOD_YEARLY) { store = new StoreCache(device_id, cur_date);