]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: null-initialize RGWProcessEnv pointer members
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Oct 2022 19:33:04 +0000 (15:33 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 9 Dec 2022 20:13:16 +0000 (15:13 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_process.h

index 6346f5228c4866648d7d0088599584e943201c61..7e65accae759bb6c4835b15abac2442ab3bab57b 100644 (file)
@@ -29,14 +29,13 @@ namespace rgw::lua {
 }
 
 struct RGWProcessEnv {
-  rgw::sal::Driver* driver;
-  RGWREST *rest;
-  OpsLogSink *olog;
+  rgw::sal::Driver* driver = nullptr;
+  RGWREST *rest = nullptr;
+  OpsLogSink *olog = nullptr;
   std::string uri_prefix;
   std::shared_ptr<rgw::auth::StrategyRegistry> auth_registry;
-  //maybe there is a better place to driver the rate limit data structure
-  ActiveRateLimiter* ratelimiting;
-  rgw::lua::Background* lua_background;
+  ActiveRateLimiter* ratelimiting = nullptr;
+  rgw::lua::Background* lua_background = nullptr;
 };
 
 class RGWFrontendConfig;