From 3e71a7554da05aee06d5a2227808c321a3e3f0f1 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 14 Mar 2015 01:16:31 +0100 Subject: [PATCH] librbd/AioRequest.h: fix UNINIT_CTOR Fix for: CID 1274319: Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_object_state is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf (cherry picked from commit 48f18ea0e1c4c6de1921ea2359448deb761461e7) --- src/librbd/AioRequest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librbd/AioRequest.h b/src/librbd/AioRequest.h index bac3b4706c9e3..924c00602fdfd 100644 --- a/src/librbd/AioRequest.h +++ b/src/librbd/AioRequest.h @@ -229,7 +229,8 @@ namespace librbd { object_no, 0, 0, objectx, object_overlap, snapc, snap_id, completion, - true) { + true), + m_object_state(OBJECT_NONEXISTENT) { } virtual ~AioRemove() {} -- 2.39.5