From a1d8267c577f6fa78acfcc123ddd089f1c603d18 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 15 Oct 2012 14:14:28 -0700 Subject: [PATCH] cls_rgw: init var in ctor 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 --- src/cls/rgw/cls_rgw_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rgw/cls_rgw_ops.h b/src/cls/rgw/cls_rgw_ops.h index 98ee0d4560cd..09c908fccd1d 100644 --- a/src/cls/rgw/cls_rgw_ops.h +++ b/src/cls/rgw/cls_rgw_ops.h @@ -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); -- 2.47.3