Skip to content

Commit

Permalink
rgw: download object might fail for local invariable uninitialized
Browse files Browse the repository at this point in the history
This is an omission in ceph#20226

Fixes: http://tracker.ceph.com/issues/23146

Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
  • Loading branch information
fangyuxiangGL committed Feb 27, 2018
1 parent e6acc64 commit f5d2a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_compression.cc
Expand Up @@ -79,7 +79,7 @@ int RGWGetObj_Decompress::handle_data(bufferlist& bl, off_t bl_ofs, off_t bl_len
bufferlist out_bl, in_bl, temp_in_bl;
bl.copy(bl_ofs, bl_len, temp_in_bl);
bl_ofs = 0;
int r;
int r = 0;
if (waiting.length() != 0) {
in_bl.append(waiting);
in_bl.append(temp_in_bl);
Expand Down

0 comments on commit f5d2a66

Please sign in to comment.