From 8479b4cd9f0ba6e04360629e38b8e9a41a085b13 Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 16 Dec 2024 16:25:53 +0100 Subject: [PATCH] [NetworkClient] Init members of NetworkClient Fixes: #10736 --- libraries/Network/src/NetworkClient.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/Network/src/NetworkClient.h b/libraries/Network/src/NetworkClient.h index bdf857e9637..13abf32f934 100644 --- a/libraries/Network/src/NetworkClient.h +++ b/libraries/Network/src/NetworkClient.h @@ -35,13 +35,13 @@ class ESPLwIPClient : public Client { class NetworkClient : public ESPLwIPClient { protected: - std::shared_ptr clientSocketHandle; - std::shared_ptr _rxBuffer; - bool _connected; - bool _sse; + std::shared_ptr clientSocketHandle = nullptr; + std::shared_ptr _rxBuffer = nullptr; + bool _connected = false; + bool _sse = false; int _timeout; - int _lastWriteTimeout; - int _lastReadTimeout; + int _lastWriteTimeout = 0; + int _lastReadTimeout = 0; public: NetworkClient *next;