Fix for:
CID 717354 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member id is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member type is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member off is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member len is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member lg is not initialized in
this constructor nor in any functions that it calls.
uninit_member: Non-static class member completion is not
initialized in this constructor nor in any functions that it calls.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
LoadGen *lg;
librados::AioCompletion *completion;
- LoadGenOp() {}
+ LoadGenOp() : id(0), type(0), off(0), len(0), lg(NULL), completion(NULL) {}
LoadGenOp(LoadGen *_lg) : id(0), type(0), off(0), len(0), lg(_lg), completion(NULL) {}
};