Skip to content

Commit

Permalink
rgw/rgw_op.h: init scalar field in ctor
Browse files Browse the repository at this point in the history
Fix for:

CID 717368 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member is_truncated is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf authored and liewegas committed Nov 9, 2016
1 parent 1ce29dd commit d2cfded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rgw/rgw_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ class RGWListBuckets : public RGWOp {
buckets_objcount = 0;
buckets_size = 0;
buckets_size_rounded = 0;
is_truncated = false;
}

int verify_permission();
Expand Down

0 comments on commit d2cfded

Please sign in to comment.