summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-03-22 11:29:25 -0600
committerJens Axboe <axboe@kernel.dk>2018-03-22 11:29:25 -0600
commit87c6f22bf24da4679849ccf778451b8432c2b368 (patch)
tree6c876a8b88d7df3c7ac93a8a42607d18f80889d2 /server.c
parent18064c16cf8ba700ea394109d6c602aadfe499ca (diff)
downloadfio-87c6f22bf24da4679849ccf778451b8432c2b368.tar.gz
fio-87c6f22bf24da4679849ccf778451b8432c2b368.tar.bz2
server: use scalloc() for sk_out allocation
This informs valgrind that it's properly initialized. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
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;