From 6318b4990fe7fe8f25fff4755eee64fef069dee9 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 26 Jul 2017 08:12:30 -0400 Subject: [PATCH] rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized. Fixes: http://tracker.ceph.com/issues/20774 Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_website.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_website.h b/src/rgw/rgw_website.h index fde29ad6ba963..fd0257b98693e 100644 --- a/src/rgw/rgw_website.h +++ b/src/rgw/rgw_website.h @@ -21,7 +21,7 @@ struct RGWRedirectInfo { string protocol; string hostname; - uint16_t http_redirect_code; + uint16_t http_redirect_code = 0; void encode(bufferlist& bl) const { ENCODE_START(1, 1, bl); -- 2.39.5