You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/05/20 20:39:17 UTC

svn commit: r946750 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp

Author: tabish
Date: Thu May 20 18:39:17 2010
New Revision: 946750

URL: http://svn.apache.org/viewvc?rev=946750&view=rev
Log:
Fix valgrind warning.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp?rev=946750&r1=946749&r2=946750&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp Thu May 20 18:39:17 2010
@@ -388,7 +388,7 @@ void SocketTest::testGetOutputStream() {
 
     // Write some data to the server
     OutputStream* out = pingClient.getOutputStream();
-    unsigned char buffer[250];
+    unsigned char buffer[250] = {0};
     out->write( buffer, 1 );
 
     // Wait for the server to finish