]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: init var in ctor
authorSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:14:28 +0000 (14:14 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:14:28 +0000 (14:14 -0700)
CID 727992 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (2): Non-static class member "tag_timeout" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
src/cls/rgw/cls_rgw_ops.h

index 98ee0d4560cd9076272e5d120e5b87605ec24aad..09c908fccd1d5a9abb860c4b3c36442b79ed613a 100644 (file)
@@ -10,7 +10,7 @@ struct rgw_cls_tag_timeout_op
 {
   uint64_t tag_timeout;
 
-  rgw_cls_tag_timeout_op() {}
+  rgw_cls_tag_timeout_op() : tag_timeout(0) {}
 
   void encode(bufferlist &bl) const {
     ENCODE_START(1, 1, bl);