From 076eefbed62dc87e59499a63afd311e744b909e7 Mon Sep 17 00:00:00 2001 From: mod-h2-dev Date: Mon, 16 Mar 2015 17:42:22 +0200 Subject: [PATCH] fix for segfault by reserving correct worker count --- src/h2load.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h2load.cc b/src/h2load.cc index cad8439c..5dbedddb 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -1315,7 +1315,7 @@ int main(int argc, char **argv) { auto start = std::chrono::steady_clock::now(); std::vector> workers; - workers.reserve(config.nthreads - 1); + workers.reserve(config.nthreads); #ifndef NOTHREADS std::vector> futures;