From: Radoslaw Zarzynski Date: Wed, 26 Jul 2017 12:12:30 +0000 (-0400) Subject: rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized. X-Git-Tag: v12.1.2~77^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6318b4990fe7fe8f25fff4755eee64fef069dee9;p=ceph.git rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized. Fixes: http://tracker.ceph.com/issues/20774 Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_website.h b/src/rgw/rgw_website.h index fde29ad6ba96..fd0257b98693 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);