summaryrefslogtreecommitdiff
path: root/ACE/ace/Log_Msg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Log_Msg.cpp')
-rw-r--r--ACE/ace/Log_Msg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ACE/ace/Log_Msg.cpp b/ACE/ace/Log_Msg.cpp
index 411af4f445e..a0f83a1c3b9 100644
--- a/ACE/ace/Log_Msg.cpp
+++ b/ACE/ace/Log_Msg.cpp
@@ -1369,8 +1369,7 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
case 'm': // Format the string assocated with the errno value.
{
errno = 0;
- char *msg = 0;
- msg = ACE_OS::strerror (ACE::map_errno (this->errnum ()));
+ char *msg = ACE_OS::strerror (ACE::map_errno (this->errnum ()));
// Windows can try to translate the errnum using
// system calls if strerror() doesn't get anything useful.
#if defined (ACE_WIN32)