Skip to content

Commit b217d19

Browse files
committed
osd/RadosModel.h: init non-static member in ctor
Fix for: CID 1188182 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member rcompletion is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
1 parent 4e0ea75 commit b217d19

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/osd/RadosModel.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ class WriteOp : public TestOp {
727727
bool do_excl,
728728
TestOpStat *stat = 0)
729729
: TestOp(n, context, stat),
730-
oid(oid), waiting_on(0), last_acked_tid(0), do_append(do_append),
730+
oid(oid), rcompletion(NULL), waiting_on(0),
731+
last_acked_tid(0), do_append(do_append),
731732
do_excl(do_excl)
732733
{}
733734

0 commit comments

Comments
 (0)