Skip to content

Commit

Permalink
rgw: Initialize pointer field in RGWObjectExpirer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
joscollin committed Jul 12, 2017
1 parent b932d7f commit 964081b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_object_expirer_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RGWObjectExpirer {
void stop();
};

OEWorker *worker;
OEWorker *worker{nullptr};
std::atomic<bool> down_flag = { false };

public:
Expand Down

0 comments on commit 964081b

Please sign in to comment.