From: Jos Collin Date: Fri, 23 Jun 2017 16:09:44 +0000 (+0530) Subject: tools/rbd_mirror: initialize Non-static class member m_do_resync in ImageReplayer X-Git-Tag: ses5-milestone8~1^2~68^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef65e7aa53a8104dba8303481f590e2120bd36aa;p=ceph.git tools/rbd_mirror: initialize Non-static class member m_do_resync in ImageReplayer Fixes the Coverity Scan Report: CID 1412614 (#2-1 of 2): Uninitialized scalar field (UNINIT_CTOR) 7. uninit_member: Non-static class member m_do_resync is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- diff --git a/src/tools/rbd_mirror/ImageReplayer.h b/src/tools/rbd_mirror/ImageReplayer.h index e74c7c46ddc1b..9e4597a3da863 100644 --- a/src/tools/rbd_mirror/ImageReplayer.h +++ b/src/tools/rbd_mirror/ImageReplayer.h @@ -300,7 +300,7 @@ private: int m_last_r = 0; std::string m_state_desc; BootstrapProgressContext m_progress_cxt; - bool m_do_resync; + bool m_do_resync{false}; image_replayer::EventPreprocessor *m_event_preprocessor = nullptr; image_replayer::ReplayStatusFormatter *m_replay_status_formatter = nullptr;