From 167c760cfc2596e9a8e7535249faede7b7239c25 Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Sun, 13 Mar 2011 20:05:02 +0200 Subject: [PATCH] remove warning from possible uninitialized variable Signed-off-by: Mika Laitio --- src/StoreCache.cc | 1 + 1 file changed, 1 insertion(+) 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); -- 2.41.1