esp_http_client: fix few coverity warnings

pull/9811/merge
Mahavir Jain 2022-10-10 15:10:55 +05:30
rodzic 40b48a5393
commit a7b42be1bd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 99324EF4A00734E0
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -159,9 +159,6 @@ int http_header_set_format(http_header_handle_t header, const char *key, const c
len = vasprintf(&buf, format, argptr);
va_end(argptr);
ESP_RETURN_ON_FALSE(buf, 0, TAG, "Memory exhausted");
if (buf == NULL) {
return 0;
}
http_header_set(header, key, buf);
free(buf);
return len;