From 7725df2d751443bf37be18f1640c5c86a8a9df79 Mon Sep 17 00:00:00 2001 From: Jelte Jansen Date: Wed, 13 Feb 2013 23:42:54 +0100 Subject: [PATCH] [2669] Initialize memory in tcp unit test --- src/lib/asiolink/tests/tcp_socket_unittest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/asiolink/tests/tcp_socket_unittest.cc b/src/lib/asiolink/tests/tcp_socket_unittest.cc index 538cf48386..fd55bf09ea 100644 --- a/src/lib/asiolink/tests/tcp_socket_unittest.cc +++ b/src/lib/asiolink/tests/tcp_socket_unittest.cc @@ -83,7 +83,9 @@ public: PrivateData() : error_code_(), length_(0), cumulative_(0), expected_(0), offset_(0), name_(""), queued_(NONE), called_(NONE) - {} + { + memset(data_, 0, MIN_SIZE); + } asio::error_code error_code_; ///< Completion error code size_t length_; ///< Bytes transferred in this I/O