From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 10:51:49 +0000 (+0100) Subject: os/fs/FS.h: init member vars in aio_t ctor X-Git-Tag: v11.1.0~327^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed5b6358d82f818d3fc024ee7237656020dccc3e;p=ceph.git 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 --- diff --git a/src/os/fs/FS.h b/src/os/fs/FS.h index 18e99a20feaa..7b3b378e61ca 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)); }