Needed to add memset to remove crashing case in memslap
authorBrian Aker <brian@tangent.org>
Fri, 30 Nov 2007 07:14:00 +0000 (23:14 -0800)
committerBrian Aker <brian@tangent.org>
Fri, 30 Nov 2007 07:14:00 +0000 (23:14 -0800)
src/memslap.c

index 487b60230f11ddf7842b60346e75a41e0f2dfe29..0dd7ebca6cd4dcb8ee178fc7260ac35aa4d789fa 100644 (file)
@@ -150,6 +150,7 @@ void scheduler(memcached_server_st *servers, conclusions_st *conclusion)
   {
     thread_context_st *context;
     context= (thread_context_st *)malloc(sizeof(thread_context_st));
+    memset(context, 0, sizeof(thread_context_st));
 
     context->servers= servers;
     context->test= opt_test;