]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Initialize pointer field in RGWLib
authorJos Collin <jcollin@redhat.com>
Thu, 29 Jun 2017 14:53:41 +0000 (20:23 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 12 Jul 2017 16:03:04 +0000 (21:33 +0530)
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 <jcollin@redhat.com>
src/rgw/rgw_lib.h

index ce916a12c7d014ffd9e05c89a950d7eac6d29566..0ddaa54e38f759fcfc6a8a373f77654dfebff0e3 100644 (file)
@@ -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<CephContext> cct;