Skip to content

Commit 6c3ca3f

Browse files
authored
Merge pull request #2258 from likema/log-msg-reset-ostream
Reset FILE* Log_Msg::ostream_
2 parents b5f10b5 + 53a0ae2 commit 6c3ca3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ACE/ace/Log_Msg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ ACE_Log_Msg::ACE_Log_Msg ()
621621
linenum_ (0),
622622
msg_ (0),
623623
restart_ (1), // Restart by default...
624-
ostream_ (0),
624+
ostream_ (nullptr),
625625
ostream_refcount_ (0),
626626
msg_callback_ (0),
627627
trace_depth_ (0),
@@ -753,8 +753,8 @@ ACE_Log_Msg::cleanup_ostream ()
753753
ACE_OS::fclose (this->ostream_);
754754
#else
755755
delete this->ostream_;
756-
this->ostream_ = 0;
757756
#endif
757+
this->ostream_ = nullptr;
758758
}
759759
this->ostream_refcount_ = 0;
760760
}

0 commit comments

Comments
 (0)