diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index 24b6865052..67b45b6cbe 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -43,6 +43,12 @@ void Client::open(SDLNet_SocketSet set, TCPsocket socket) { _state = READING_HEADERS; _socket = socket; _set = set; + _headers = ""; + _method = ""; + _path = ""; + _query = ""; + _anchor = ""; + _handler = nullptr; if (set) { int numused = SDLNet_TCP_AddSocket(set, socket); if (numused == -1) { |