]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Coverity 1501408: Uninitialized scalar field 12290/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 7 Dec 2022 10:54:01 +0000 (11:54 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 7 Dec 2022 10:54:01 +0000 (11:54 +0100)
pdns/minicurl.hh

index c5bbf3316e3590844f7bf9f282a54953102442d0..e8916de57e8446bbd43c303da92849d636c2b632 100644 (file)
@@ -41,12 +41,12 @@ public:
   std::string getURL(const std::string& str, const ComboAddress* rem=nullptr, const ComboAddress* src=nullptr, int timeout = 2, bool fastopen = false, bool verify = false, size_t byteslimit = 0);
   std::string postURL(const std::string& str, const std::string& postdata, MiniCurlHeaders& headers, int timeout = 2, bool fastopen = false, bool verify = false);
 private:
-  CURL *d_curl;
+  CURL *d_curl{};
   static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata);
   static size_t progress_callback(void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow);
   std::string d_data;
-  size_t d_byteslimit;
-  struct curl_slist* d_header_list = nullptr;
+  size_t d_byteslimit{};
+  struct curl_slist* d_header_list{};
   void setupURL(const std::string& str, const ComboAddress* rem, const ComboAddress* src, int timeout, size_t byteslimit, bool fastopen, bool verify);
   void setHeaders(const MiniCurlHeaders& headers);
   void clearHeaders();