mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_http_client: fix few coverity warnings
This commit is contained in:
parent
40b48a5393
commit
a7b42be1bd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user