From: Danny Al-Gaaf Date: Thu, 5 Mar 2015 05:35:27 +0000 (+0100) Subject: rgw_quota.cc: init variables in constructor X-Git-Tag: v9.0.0~186^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f79e4a61664881bd3b2e6b1b7f19dfe4b2807ee;p=ceph.git rgw_quota.cc: init variables in constructor Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_quota.cc b/src/rgw/rgw_quota.cc index 910da2fffb7c..85536bf8bfb4 100644 --- a/src/rgw/rgw_quota.cc +++ b/src/rgw/rgw_quota.cc @@ -47,7 +47,7 @@ protected: uint64_t added_bytes; uint64_t removed_bytes; public: - StatsAsyncTestSet() {} + StatsAsyncTestSet() : objs_delta(0), added_bytes(0), removed_bytes(0) {} bool update(RGWQuotaCacheStats *entry) { if (entry->async_refresh_time.sec() == 0) return false;