Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 154065f

Browse files
ghallidayvinjiang
authored andcommitted
Fix problem with sanitize options on modern versions of gcc
Some of the constructors for request_result do not initialize the value leading to complaints when the copy constructor is used. Signed-off-by: Gavin Halliday <[email protected]>
1 parent 24aa03a commit 154065f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Microsoft.WindowsAzure.Storage/src/request_result.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace azure { namespace storage {
2929
m_target_location(target_location),
3030
m_end_time(utility::datetime::utc_now()),
3131
m_http_status_code(response.status_code()),
32-
m_content_length(std::numeric_limits<utility::size64_t>::max())
32+
m_content_length(std::numeric_limits<utility::size64_t>::max()),
33+
m_request_server_encrypted(false)
3334
{
3435
parse_headers(response.headers());
3536
if (parse_body_as_error)
@@ -45,7 +46,8 @@ namespace azure { namespace storage {
4546
m_end_time(utility::datetime::utc_now()),
4647
m_http_status_code(http_status_code),
4748
m_extended_error(std::move(extended_error)),
48-
m_content_length(std::numeric_limits<utility::size64_t>::max())
49+
m_content_length(std::numeric_limits<utility::size64_t>::max()),
50+
m_request_server_encrypted(false)
4951
{
5052
parse_headers(response.headers());
5153
}

0 commit comments

Comments
 (0)