From ed5b6358d82f818d3fc024ee7237656020dccc3e Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 11:51:49 +0100 Subject: [PATCH] os/fs/FS.h: init member vars in aio_t ctor CID 1351707 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member offset is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member length is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- src/os/fs/FS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/fs/FS.h b/src/os/fs/FS.h index 18e99a20feaa6..7b3b378e61ca9 100644 --- a/src/os/fs/FS.h +++ b/src/os/fs/FS.h @@ -64,7 +64,7 @@ public: boost::intrusive::list_member_hook<> queue_item; - aio_t(void *p, int f) : priv(p), fd(f), rval(-1000) { + aio_t(void *p, int f) : priv(p), fd(f), offset(0), length(0), rval(-1000) { memset(&iocb, 0, sizeof(iocb)); } -- 2.39.5