Don't leave m_httpsize and m_read_bytes uninitialized.
Closes #14993.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73436
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
size_t m_httpsize;
unsigned long m_read_bytes;
- wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http), m_http(http) {}
+ wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http)
+ {
+ m_http = http;
+ m_httpsize = 0;
+ m_read_bytes = 0;
+ }
+
size_t GetSize() const { return m_httpsize; }
virtual ~wxHTTPStream(void) { m_http->Abort(); }