Skip to content
Snippets Groups Projects
Commit 76832d7f authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix uninitialized warning in gcc 10

parent a5d368b1
No related branches found
No related tags found
No related merge requests found
...@@ -100,14 +100,14 @@ void LLAdaptiveRetryPolicy::onSuccess() ...@@ -100,14 +100,14 @@ void LLAdaptiveRetryPolicy::onSuccess()
void LLAdaptiveRetryPolicy::onFailure(S32 status, const LLSD& headers) void LLAdaptiveRetryPolicy::onFailure(S32 status, const LLSD& headers)
{ {
F32 retry_header_time; F32 retry_header_time = 0.f;
bool has_retry_header_time = getRetryAfter(headers,retry_header_time); bool has_retry_header_time = getRetryAfter(headers,retry_header_time);
onFailureCommon(status, has_retry_header_time, retry_header_time); onFailureCommon(status, has_retry_header_time, retry_header_time);
} }
void LLAdaptiveRetryPolicy::onFailure(const LLCore::HttpResponse *response) void LLAdaptiveRetryPolicy::onFailure(const LLCore::HttpResponse *response)
{ {
F32 retry_header_time; F32 retry_header_time = 0.f;
const LLCore::HttpHeaders::ptr_t headers = response->getHeaders(); const LLCore::HttpHeaders::ptr_t headers = response->getHeaders();
bool has_retry_header_time = getRetryAfter(headers,retry_header_time); bool has_retry_header_time = getRetryAfter(headers,retry_header_time);
onFailureCommon(response->getStatus().getType(), has_retry_header_time, retry_header_time); onFailureCommon(response->getStatus().getType(), has_retry_header_time, retry_header_time);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment