From 3cc74534d138e2f480c094bc54c792a09061c68b Mon Sep 17 00:00:00 2001 From: Sebastien Date: Mon, 2 Dec 2019 11:22:22 -0500 Subject: [PATCH] fix http response handling in ota --- components/squeezelite-ota/squeezelite-ota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/squeezelite-ota/squeezelite-ota.c b/components/squeezelite-ota/squeezelite-ota.c index 4f9dcbd7..af5f150f 100644 --- a/components/squeezelite-ota/squeezelite-ota.c +++ b/components/squeezelite-ota/squeezelite-ota.c @@ -284,7 +284,7 @@ static bool process_again(int status_code) } static esp_err_t _http_handle_response_code(esp_http_client_handle_t http_client, int status_code) { - esp_err_t err; + esp_err_t err=ESP_OK; if (status_code == HttpStatus_MovedPermanently || status_code == HttpStatus_Found) { ESP_LOGW(TAG, "Handling HTTP redirection. "); err = esp_http_client_set_redirection(http_client);