From 83a384de9e8b7d7b0f100f833a498bedfbfee006 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 30 Dec 2016 14:31:01 +0000 Subject: [PATCH] osd/OSD.h: fix uninitialized member Silence Coverity 1398203 Signed-off-by: Li Wang --- src/osd/OSD.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index d404d0254e5..7b4a8f5edd0 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -638,7 +638,7 @@ public: utime_t sched_time; /// the hard upper bound of scrub time utime_t deadline; - ScrubJob() {} + ScrubJob() : cct(nullptr) {} explicit ScrubJob(CephContext* cct, const spg_t& pg, const utime_t& timestamp, double pool_scrub_min_interval = 0, -- 2.39.5