Skip to content

Commit

Permalink
rados: Initialization of alignment
Browse files Browse the repository at this point in the history
Fixes the coverity issues:

** 1409700 Uninitialized scalar field
CID 1409700 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member alignment is not initialized
in this constructor nor in any functions that it calls.

** 1409702 Uninitialized scalar field
CID 1409702 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member alignment is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
  • Loading branch information
amitkuma committed Sep 16, 2017
1 parent d929dae commit 95571ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/librados/TestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class RadosTestECPPNS : public RadosTestPPNS {
void TearDown() override;
librados::Rados &cluster;
librados::IoCtx ioctx;
uint64_t alignment;
uint64_t alignment = 0;
bool cleanup;
};

Expand Down Expand Up @@ -230,7 +230,7 @@ class RadosTestECPP : public RadosTestPP {
librados::IoCtx ioctx;
bool cleanup;
std::string nspace;
uint64_t alignment;
uint64_t alignment = 0;
};

/**
Expand Down

0 comments on commit 95571ad

Please sign in to comment.