]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGWListBucketMultiparts: init max_uploads/default_max with 0
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 12 Mar 2014 21:56:44 +0000 (22:56 +0100)
committerSage Weil <sage@inktank.com>
Fri, 14 Mar 2014 20:30:13 +0000 (13:30 -0700)
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 <danny.al-gaaf@bisect.de>
(cherry picked from commit b23a141d54ffb39958aba9da7f87544674fa0e50)

src/rgw/rgw_op.h

index 2580eeedf42a736ad8f306b14833969aaf97fb1f..9c1fa5333a901f7b0c58ec88fa64edb40cac4659 100644 (file)
@@ -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) {