]> pilppa.com Git - libplp.git/commitdiff
remove warning from possible uninitialized variable
authorMika Laitio <lamikr@pilppa.org>
Sun, 13 Mar 2011 18:05:02 +0000 (20:05 +0200)
committerMika Laitio <lamikr@pilppa.org>
Sun, 13 Mar 2011 18:05:02 +0000 (20:05 +0200)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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);