Skip to content

Commit

Permalink
mds/MDLog.cc: fix uninitialized pointer read
Browse files Browse the repository at this point in the history
Fix for Coverity issue:

CID 1238902 (#1 of 1): Uninitialized pointer read (UNINIT)
 uninit_use: Using uninitialized value this->mdlog.

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Jan 7, 2015
1 parent 8511b55 commit c27e0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/MDLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class C_ReopenComplete : public MDSInternalContext {
MDLog *mdlog;
MDSInternalContextBase *on_complete;
public:
C_ReopenComplete(MDLog *mdlog_, MDSInternalContextBase *on_complete_) : MDSInternalContext(mdlog->mds), mdlog(mdlog_), on_complete(on_complete_) {}
C_ReopenComplete(MDLog *mdlog_, MDSInternalContextBase *on_complete_) : MDSInternalContext(mdlog_->mds), mdlog(mdlog_), on_complete(on_complete_) {}
void finish(int r) {
mdlog->append();
on_complete->complete(r);
Expand Down

0 comments on commit c27e0fe

Please sign in to comment.