]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rbd_mirror: initialize Non-static class member m_do_resync in ImageReplayer 15889/head
authorJos Collin <jcollin@redhat.com>
Fri, 23 Jun 2017 16:09:44 +0000 (21:39 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 23 Jun 2017 16:10:46 +0000 (21:40 +0530)
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 <jcollin@redhat.com>
src/tools/rbd_mirror/ImageReplayer.h

index e74c7c46ddc1b8964baf643606c94dd04d5a8d1a..9e4597a3da863584d91bb295b1f11b7b32023932 100644 (file)
@@ -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<ImageCtxT> *m_event_preprocessor = nullptr;
   image_replayer::ReplayStatusFormatter<ImageCtxT> *m_replay_status_formatter =
     nullptr;