]> pilppa.org Git - libplp.git/blobdiff - src/StoreCache.cc
remove warning from possible uninitialized variable
[libplp.git] / src / StoreCache.cc
index 6e19690456d4ebb5646eb2f640035fa2e86d5a4d..3506292c36a01fabb7d3f4ce1cc74f35ed6b74b2 100644 (file)
@@ -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);