From: Jens Axboe Date: Thu, 22 Mar 2018 17:29:25 +0000 (-0600) Subject: server: use scalloc() for sk_out allocation X-Git-Tag: fio-3.6~23 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=87c6f22bf24da4679849ccf778451b8432c2b368;hp=18064c16cf8ba700ea394109d6c602aadfe499ca server: use scalloc() for sk_out allocation This informs valgrind that it's properly initialized. Signed-off-by: Jens Axboe --- diff --git a/server.c b/server.c index 15dc2c4b..d3f69774 100644 --- a/server.c +++ b/server.c @@ -1359,7 +1359,7 @@ static int accept_loop(int listen_sk) dprint(FD_NET, "server: connect from %s\n", from); - sk_out = smalloc(sizeof(*sk_out)); + sk_out = scalloc(1, sizeof(*sk_out)); if (!sk_out) { close(sk); return -1;