]> 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:29:53 +0000 (13:29 -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 41ee2e88f9b9dc8855d0b9bbe2fd3eb8d2e705e1..0be70d8aaf21b7acdfaf0d64c195622806e97a1a 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
@@ -791,8 +793,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) {