From: amitkuma Date: Sun, 6 Aug 2017 17:25:07 +0000 (+0530) Subject: rgw: Initilzation of admin_specified X-Git-Tag: v12.1.3~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16847%2Fhead;p=ceph.git rgw: Initilzation of admin_specified 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 --- diff --git a/src/rgw/rgw_user.h b/src/rgw/rgw_user.h index a9ec9aa7e457..5e6754b0380c 100644 --- a/src/rgw/rgw_user.h +++ b/src/rgw/rgw_user.h @@ -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;