Coverity flagged two variables as uninitialized prior to use.
Explicitly initialize the variables in the constructors to remove
the false-positives.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
class WatchCtx : public librados::WatchCtx2 {
public:
- WatchCtx(TestImageWatcher &parent) : m_parent(parent) {}
+ WatchCtx(TestImageWatcher &parent) : m_parent(parent), m_handle(0) {}
int watch(const librbd::ImageCtx &ictx) {
m_header_oid = ictx.header_oid;
librados::Rados TestFixture::_rados;
uint64_t TestFixture::_image_number = 0;
-TestFixture::TestFixture() {
+TestFixture::TestFixture() : m_image_size(0) {
}
void TestFixture::SetUpTestCase() {