cls/rgw: Initialization of unitialized members

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

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

Signed-off-by: Amit Kumar amitkuma@redhat.com
This commit is contained in:
amitkuma 2017-08-09 17:50:14 +05:30
parent 4a3a25dece
commit 421be957f8
2 changed files with 2 additions and 2 deletions

View File

@ -1100,7 +1100,7 @@ WRITE_CLASS_ENCODER(cls_rgw_lc_get_head_ret)
struct cls_rgw_lc_list_entries_op {
string marker;
uint32_t max_entries;
uint32_t max_entries = 0;
cls_rgw_lc_list_entries_op() {}

View File

@ -1045,7 +1045,7 @@ WRITE_CLASS_ENCODER(cls_rgw_gc_obj_info)
struct cls_rgw_lc_obj_head
{
time_t start_date;
time_t start_date = 0;
string marker;
cls_rgw_lc_obj_head() {}