From 64fd1fe78ec19feb8350eb709e85901b5688ae28 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 20 May 2008 13:16:52 +0000 Subject: bugfix with strerror_r - still not working but at least not using uninitialized data --- src/PracticalSocket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/PracticalSocket.cpp') diff --git a/src/PracticalSocket.cpp b/src/PracticalSocket.cpp index 3ff286f..e08cac0 100644 --- a/src/PracticalSocket.cpp +++ b/src/PracticalSocket.cpp @@ -83,6 +83,7 @@ SocketException::SocketException(const string &message, bool inclSysMsg) if (inclSysMsg) { userMessage.append(": "); char buf[STERROR_TEXT_MAX]; + buf[0] = 0; strerror_r(errno, buf, STERROR_TEXT_MAX); userMessage.append(buf); } -- cgit v1.2.3