1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 06:52:55 +08:00

ensure connection structs are zeroed

This commit is contained in:
Will 2014-08-05 21:43:15 +09:00
parent 205a1960c8
commit 0c64376d09

View File

@ -231,7 +231,7 @@ void *thread_main(void *arg) {
thread *thread = arg;
aeEventLoop *loop = thread->loop;
thread->cs = zmalloc(thread->connections * sizeof(connection));
thread->cs = zcalloc(thread->connections * sizeof(connection));
tinymt64_init(&thread->rand, time_us());
thread->latency = stats_alloc(100000);