Initialize all wxHTTPStream members in ctor.

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
This commit is contained in:
Vadim Zeitlin
2013-01-23 11:44:30 +00:00
parent 070d639118
commit f668749377

View File

@@ -477,7 +477,13 @@ public:
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(); }