diff options
-rw-r--r-- | test/bench_httpclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bench_httpclient.c b/test/bench_httpclient.c index f0888e6c..87103cc8 100644 --- a/test/bench_httpclient.c +++ b/test/bench_httpclient.c @@ -36,6 +36,7 @@ # endif #endif #include <stdlib.h> +#include <string.h> #include <errno.h> #include "event2/event.h" @@ -130,6 +131,8 @@ launch_request(void) struct request_info *ri; + memset(&sin, 0, sizeof(sin)); + ++total_n_launched; sin.sin_family = AF_INET; |