From be0205c33ccbab3b6f105bdf4da114658a981557 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 12 Mar 2014 22:56:44 +0100 Subject: [PATCH] RGWListBucketMultiparts: init max_uploads/default_max with 0 CID 717377 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member "max_uploads" is not initialized in this constructor nor in any functions that it calls. 4. uninit_member: Non-static class member "default_max" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf (cherry picked from commit b23a141d54ffb39958aba9da7f87544674fa0e50) --- src/rgw/rgw_op.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index eb3799c07f641..deb48ec0c888d 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -1,3 +1,5 @@ +// -*- mode:C; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab /** * All operations via the rados gateway are carried out by * small classes known as RGWOps. This class contains a req_state @@ -779,8 +781,10 @@ protected: public: RGWListBucketMultiparts() { + max_uploads = 0; ret = 0; is_truncated = false; + default_max = 0; } virtual void init(RGWRados *store, struct req_state *s, RGWHandler *h) { -- 2.39.5