]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Initilzation of admin_specified 16847/head
authoramitkuma <amitkuma@redhat.com>
Sun, 6 Aug 2017 17:25:07 +0000 (22:55 +0530)
committeramitkuma <amitkuma@redhat.com>
Sun, 6 Aug 2017 17:25:07 +0000 (22:55 +0530)
Fixes the coverity issue:

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
src/rgw/rgw_user.h

index a9ec9aa7e45781d81cdaabb6e6ea689fa13ebae2..5e6754b0380ccee2fef8fc5a7f0af8e5311b7a51 100644 (file)
@@ -199,7 +199,7 @@ struct RGWUserAdminOpState {
   bool op_mask_specified;
   bool caps_specified;
   bool suspension_op;
-  bool admin_specified;
+  bool admin_specified = false;
   bool system_specified;
   bool key_op;
   bool temp_url_key_specified;