From: Adam Kupczyk Date: Wed, 31 Aug 2016 08:49:10 +0000 (+0200) Subject: Fixed problem with using uninitialized 'compressed' field. X-Git-Tag: v11.1.0~429^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c609215e5abcb1c5206134501acc474acd4d1b50;p=ceph.git Fixed problem with using uninitialized 'compressed' field. Signed-off-by: Adam Kupczyk --- diff --git a/src/rgw/rgw_compression.h b/src/rgw/rgw_compression.h index 41e4bf8f7b2b..012ba3202869 100644 --- a/src/rgw/rgw_compression.h +++ b/src/rgw/rgw_compression.h @@ -38,8 +38,9 @@ class RGWPutObj_Compress : public RGWPutObj_Filter bool compressed; std::vector blocks; public: - RGWPutObj_Compress(CephContext* cct_, RGWPutObjDataProcessor* next) : RGWPutObj_Filter(next), - cct(cct_) {} + RGWPutObj_Compress(CephContext* cct_, RGWPutObjDataProcessor* next) : RGWPutObj_Filter(next), + cct(cct_), + compressed(false) {} virtual ~RGWPutObj_Compress(){} virtual int handle_data(bufferlist& bl, off_t ofs, void **phandle, rgw_obj *pobj, bool *again) override;