From 517b0cc911564e80fc220d18a457cff3c54aa7b6 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 20 Oct 2022 15:33:04 -0400 Subject: [PATCH] rgw: null-initialize RGWProcessEnv pointer members Signed-off-by: Casey Bodley --- src/rgw/rgw_process.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/rgw/rgw_process.h b/src/rgw/rgw_process.h index 6346f5228c486..7e65accae759b 100644 --- a/src/rgw/rgw_process.h +++ b/src/rgw/rgw_process.h @@ -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 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; -- 2.39.5