You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/04/09 00:54:20 UTC

mesos git commit: Removed an unnecessary `memset` from libprocess.

Repository: mesos
Updated Branches:
  refs/heads/master 58b3a7a41 -> 6a04e4603


Removed an unnecessary `memset` from libprocess.

Zero'ing the input buffer before receiving data is unnecessary.

Review: https://reviews.apache.org/r/45488/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6a04e460
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6a04e460
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6a04e460

Branch: refs/heads/master
Commit: 6a04e4603bc9e2bc9bdb9471f6dbbd8983ab915c
Parents: 58b3a7a
Author: Neil Conway <ne...@gmail.com>
Authored: Fri Apr 8 15:53:49 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Fri Apr 8 15:53:49 2016 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/process.cpp | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6a04e460/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index d2c458e..e4eb517 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -738,7 +738,6 @@ void on_accept(const Future<Socket>& socket)
 
     const size_t size = 80 * 1024;
     char* data = new char[size];
-    memset(data, 0, size);
 
     DataDecoder* decoder = new DataDecoder(socket.get());