Skip to content

Commit

Permalink
Merge pull request #2258 from likema/log-msg-reset-ostream
Browse files Browse the repository at this point in the history
Reset FILE* Log_Msg::ostream_
  • Loading branch information
jwillemsen authored Jan 31, 2025
2 parents b5f10b5 + 53a0ae2 commit 6c3ca3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ACE/ace/Log_Msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ ACE_Log_Msg::ACE_Log_Msg ()
linenum_ (0),
msg_ (0),
restart_ (1), // Restart by default...
ostream_ (0),
ostream_ (nullptr),
ostream_refcount_ (0),
msg_callback_ (0),
trace_depth_ (0),
Expand Down Expand Up @@ -753,8 +753,8 @@ ACE_Log_Msg::cleanup_ostream ()
ACE_OS::fclose (this->ostream_);
#else
delete this->ostream_;
this->ostream_ = 0;
#endif
this->ostream_ = nullptr;
}
this->ostream_refcount_ = 0;
}
Expand Down

0 comments on commit 6c3ca3f

Please sign in to comment.