Fix for:
CID
1238901 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member ret1 is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member ret2 is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member ret3 is not initialized in
this constructor nor in any functions that it calls.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
bufferlist btbl;
int ret1, ret2, ret3;
- C_IO_Dir_OMAP_Fetched(CDir *d, const string& w) : CDirIOContext(d), want_dn(w) { }
+ C_IO_Dir_OMAP_Fetched(CDir *d, const string& w) :
+ CDirIOContext(d), want_dn(w),
+ ret1(0), ret2(0), ret3(0) {}
void finish(int r) {
// check the correctness of backtrace
if (r >= 0 && ret3 != -ECANCELED)