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:
Samuel Just 2012-09-25 14:59:07 -07:00
parent 8ec08c2dae
commit 147e90c084

View File

@ -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;