activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r946750 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/net/SocketTest.cpp
Date Thu, 20 May 2010 18:39:17 GMT
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



Mime
View raw message