Skip to content

Commit

Permalink
RGWListBucketMultiparts: init max_uploads/default_max with 0
Browse files Browse the repository at this point in the history
CID 717377 (ceph#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 <[email protected]>
(cherry picked from commit b23a141)
  • Loading branch information
dalgaaf authored and Sage Weil committed Mar 14, 2014
1 parent 6f9db6c commit 35f1b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rgw/rgw_op.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -828,8 +830,10 @@ class RGWListBucketMultiparts : public RGWOp {

public:
RGWListBucketMultiparts() {
max_uploads = 0;
ret = 0;
is_truncated = false;
default_max = 0;
}

virtual void init(RGWRados *store, struct req_state *s, RGWHandler *h) {
Expand Down

0 comments on commit 35f1b04

Please sign in to comment.