From 147e90c084721cca5daff68c69efd85c9f888a2a Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 25 Sep 2012 14:59:07 -0700 Subject: [PATCH] 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 --- src/os/FileJournal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/FileJournal.h b/src/os/FileJournal.h index 800d3ba22e1..f797ec6ceb6 100644 --- a/src/os/FileJournal.h +++ b/src/os/FileJournal.h @@ -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;