From: Yehuda Sadeh Date: Thu, 27 Sep 2012 21:38:21 +0000 (-0700) Subject: rgw: RGWObjState() initialize memebers X-Git-Tag: v0.54~83^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ddb1bb0d5bfef96ff13be70a43f4bc021f50b2df;p=ceph.git rgw: RGWObjState() initialize memebers Initialize members at constructor. Fixes coverity issues. Conflicts: src/rgw/rgw_rados.h Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 6b421cd0b5b5..bc64d4adaa39 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -130,7 +130,9 @@ struct RGWObjState { bool prefetch_data; map attrset; - RGWObjState() : is_atomic(false), has_attrs(0), exists(false), epoch(0), fake_tag(false), has_manifest(false), prefetch_data(false) {} + RGWObjState() : is_atomic(false), has_attrs(0), exists(false), + size(0), mtime(0), epoch(0), fake_tag(false), has_manifest(false), + has_data(false), prefetch_data(false) {} bool get_attr(string name, bufferlist& dest) { map::iterator iter = attrset.find(name);