From: Danny Al-Gaaf Date: Wed, 12 Mar 2014 21:56:44 +0000 (+0100) Subject: RGWListBucketMultiparts: init max_uploads/default_max with 0 X-Git-Tag: v0.78~17 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=35f1b042aa6d0a9dc3ce6b27ebd945cff8c2b532;p=ceph.git 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) --- diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index 2580eeedf42a7..9c1fa5333a901 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 @@ -828,8 +830,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) {