From: Brian Aker Date: Fri, 30 Nov 2007 07:14:00 +0000 (-0800) Subject: Needed to add memset to remove crashing case in memslap X-Git-Tag: 0.13~61 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=462ca3337e78759724dcd7379f71c68b50cfb81f;p=awesomized%2Flibmemcached Needed to add memset to remove crashing case in memslap --- diff --git a/src/memslap.c b/src/memslap.c index 487b6023..0dd7ebca 100644 --- a/src/memslap.c +++ b/src/memslap.c @@ -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;