mirror of
https://github.com/wg/wrk
synced 2026-05-13 17:05:29 +08:00
ensure connection structs are zeroed
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user