summaryrefslogtreecommitdiffstats
path: root/source/cSocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cSocket.cpp')
-rw-r--r--source/cSocket.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/cSocket.cpp b/source/cSocket.cpp
index bd26fb274..0945d170e 100644
--- a/source/cSocket.cpp
+++ b/source/cSocket.cpp
@@ -19,7 +19,6 @@
cSocket::cSocket( xSocket a_Socket )
: m_Socket( a_Socket )
- , m_IPString( 0 )
{
}
@@ -59,9 +58,9 @@ void cSocket::CloseSocket()
closesocket(m_Socket);
#else
if( shutdown(m_Socket, SHUT_RDWR) != 0 )//SD_BOTH);
- LOGWARN("Error on shutting down socket (%s)", m_IPString );
+ LOGWARN("Error on shutting down socket (%s)", m_IPString.c_str() );
if( close(m_Socket) != 0 )
- LOGWARN("Error closing socket (%s)", m_IPString );
+ LOGWARN("Error closing socket (%s)", m_IPString.c_str() );
#endif
}