diff --git a/lib/easy.c b/lib/easy.c index 117af41f08..8c225d0804 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -815,7 +815,7 @@ static CURLcode easy_perform(struct Curl_easy *data, bool events) */ CURLcode curl_easy_perform(CURL *curl) { - struct Curl_eapi_guard guard; + struct Curl_eapi_guard guard = { 0 }; CURLcode result; if(CURL_EAPI_ENTER(&guard, curl, easy_perform, &result)) { diff --git a/lib/http.c b/lib/http.c index 47e7cd3df6..ed2dff373f 100644 --- a/lib/http.c +++ b/lib/http.c @@ -200,7 +200,7 @@ static bool http_header_is_empty(const char *header) */ static CURLcode copy_custom_value(const char *header, char **valp) { - struct Curl_str out; + struct Curl_str out = { 0 }; /* find the end of the header name */ if(header_has_value(&header, &out)) {