From 1a6bc40881b08a1123b4f50c693c4dd06f41e344 Mon Sep 17 00:00:00 2001 From: amitkuma Date: Sun, 6 Aug 2017 22:55:07 +0530 Subject: [PATCH] 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 --- src/rgw/rgw_user.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_user.h b/src/rgw/rgw_user.h index a9ec9aa7e4578..5e6754b0380cc 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; -- 2.39.5