diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:22 +0300 |
commit | 9374c8e701dcb61a46c89a854235d91a23bf672e (patch) | |
tree | ad366bc7f47da578fb33a57c32912689f5aadecb /protocols/YAMN/src/proto/netlib.h | |
parent | 3c5923d11431c515db57e4e972d53bf0443f1bcb (diff) |
warning fixes
Diffstat (limited to 'protocols/YAMN/src/proto/netlib.h')
-rw-r--r-- | protocols/YAMN/src/proto/netlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/YAMN/src/proto/netlib.h b/protocols/YAMN/src/proto/netlib.h index 778d6497ed..dfa3d93508 100644 --- a/protocols/YAMN/src/proto/netlib.h +++ b/protocols/YAMN/src/proto/netlib.h @@ -4,7 +4,7 @@ class CNLClient: public CNetClient { public: - CNLClient(): hConnection(nullptr) {} + CNLClient() {} void Connect(const char* servername, const int port) throw(DWORD); void Send(const char *query) throw(DWORD); char* Recv(char *buf= nullptr, int buflen = 65536) throw(DWORD); @@ -14,8 +14,8 @@ public: inline BOOL Connected() {return hConnection != nullptr;} protected: - HNETLIBCONN hConnection; - BOOL isTLSed; + HNETLIBCONN hConnection = nullptr; + BOOL isTLSed = false; int LocalNetlib_Send(HNETLIBCONN hConn, const char *buf, int len, int flags); int LocalNetlib_Recv(HNETLIBCONN hConn, char *buf, int len, int flags); }; |