mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
FileJournal: uninit var in ctor FileJournal
CID 717332: Uninitialized pointer field (UNINIT_CTOR)At (12): Non-static class member field "iocb.aio_fildes" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
8ec08c2dae
commit
147e90c084
@ -187,6 +187,7 @@ private:
|
||||
aio_info(bufferlist& b, uint64_t o, uint64_t s)
|
||||
: iov(NULL), done(false), off(o), len(b.length()), seq(s) {
|
||||
bl.claim(b);
|
||||
memset((void*)&iocb, 0, sizeof(iocb));
|
||||
}
|
||||
~aio_info() {
|
||||
delete[] iov;
|
||||
|
Loading…
Reference in New Issue
Block a user