added .clangd config file. initialized uninitialized variables
Test: tested compilation.
Change-Id: Iccb3ec4dd7ec6a631447c1e3a9e25d287362850f
diff --git a/libcurl_http_fetcher.cc b/libcurl_http_fetcher.cc
index 4737b46..b8d11f5 100644
--- a/libcurl_http_fetcher.cc
+++ b/libcurl_http_fetcher.cc
@@ -166,7 +166,7 @@
curl_handle_, CURLOPT_PROXY, GetCurrentProxy().c_str()),
CURLE_OK);
// Curl seems to require us to set the protocol
- curl_proxytype type;
+ curl_proxytype type{};
if (GetProxyType(GetCurrentProxy(), &type)) {
CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_PROXYTYPE, type),
CURLE_OK);
@@ -597,7 +597,7 @@
sent_byte_ = true;
{
- double transfer_size_double;
+ double transfer_size_double{};
CHECK_EQ(curl_easy_getinfo(curl_handle_,
CURLINFO_CONTENT_LENGTH_DOWNLOAD,
&transfer_size_double),
@@ -827,7 +827,7 @@
// Repeated calls to |curl_multi_info_read| will return a new struct each
// time, until a NULL is returned as a signal that there is no more to get
// at this point.
- int msgs_in_queue;
+ int msgs_in_queue{};
CURLMsg* curl_msg =
curl_multi_info_read(curl_multi_handle_, &msgs_in_queue);
if (curl_msg == nullptr)