From: Jos Collin Date: Thu, 29 Jun 2017 14:53:41 +0000 (+0530) Subject: rgw: Initialize pointer field in RGWLib X-Git-Tag: v12.1.1~41^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a1aca827a8e346c573080e468175593c288603a4;p=ceph.git rgw: Initialize pointer field in RGWLib CID 1352184: Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member ldh is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- diff --git a/src/rgw/rgw_lib.h b/src/rgw/rgw_lib.h index ce916a12c7d..0ddaa54e38f 100644 --- a/src/rgw/rgw_lib.h +++ b/src/rgw/rgw_lib.h @@ -26,7 +26,7 @@ namespace rgw { RGWFrontendConfig* fec; RGWLibFrontend* fe; OpsLogSocket* olog; - rgw::LDAPHelper* ldh; + rgw::LDAPHelper* ldh{nullptr}; RGWREST rest; // XXX needed for RGWProcessEnv RGWRados* store; boost::intrusive_ptr cct;