From: Danny Al-Gaaf Date: Thu, 12 Apr 2018 18:31:29 +0000 (+0200) Subject: rgw/rgw_website.h: fix uninitialized variable X-Git-Tag: v13.1.0~237^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8038f4046ebb4b75cd56043aea97e843991b635;p=ceph.git rgw/rgw_website.h: fix uninitialized variable Co-authored-by: Casey Bodley Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_website.h b/src/rgw/rgw_website.h index 53d89525d7dd..c689ef73685f 100644 --- a/src/rgw/rgw_website.h +++ b/src/rgw/rgw_website.h @@ -80,7 +80,7 @@ WRITE_CLASS_ENCODER(RGWBWRedirectInfo) struct RGWBWRoutingRuleCondition { std::string key_prefix_equals; - uint16_t http_error_code_returned_equals; + uint16_t http_error_code_returned_equals = 0; void encode(bufferlist& bl) const { ENCODE_START(1, 1, bl);