]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Initialize pointer field in RGWObjectExpirer
authorJos Collin <jcollin@redhat.com>
Thu, 29 Jun 2017 14:18:51 +0000 (19:48 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 12 Jul 2017 16:03:04 +0000 (21:33 +0530)
Fixes the Coverity Scan Report:
CID 1351737 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member worker is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/rgw/rgw_object_expirer_core.h

index a42482942d73fa1e0692120717d52025809a2bf4..26751655d894085c07ab76a72b2278ba4a5dd27c 100644 (file)
@@ -65,7 +65,7 @@ protected:
     void stop();
   };
 
-  OEWorker *worker;
+  OEWorker *worker{nullptr};
   std::atomic<bool> down_flag = { false };
 
 public: