From c6833653413d87b726bc669e3432b313b67d261c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 6 May 2020 19:13:14 -0700 Subject: [PATCH] ircd::fs::aio: No default zero initialization for aio::request used in array. --- ircd/fs_aio.cc | 2 ++ ircd/fs_aio.h | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index b608ecb8b..201afd55d 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -361,6 +361,8 @@ ircd::fs::aio::request::request(const int &fd, const struct opts *const &opts, ctx::dock *const &waiter) :iocb{0} +,retval{-2L} +,errcode{0L} ,opts{opts} ,waiter{waiter} { diff --git a/ircd/fs_aio.h b/ircd/fs_aio.h index 56b8a2e1a..4f18caa93 100644 --- a/ircd/fs_aio.h +++ b/ircd/fs_aio.h @@ -122,10 +122,10 @@ struct ircd::fs::aio::request struct write; struct fsync; - ssize_t retval {-2L}; - ssize_t errcode {0L}; - const struct opts *opts {nullptr}; - ctx::dock *waiter {nullptr}; + ssize_t retval; + ssize_t errcode; + const struct opts *opts; + ctx::dock *waiter; bool wait();