Explorar o código

fix http response handling in ota

Sebastien %!s(int64=5) %!d(string=hai) anos
pai
achega
3cc74534d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/squeezelite-ota/squeezelite-ota.c

+ 1 - 1
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);