From d0d742cbeb9502dd83a3bbf559b4811b22bfd5a7 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 2 Sep 2023 06:36:02 +0700 Subject: [PATCH] Fix uninitialized variables to prevent some code check tool warning. --- library.json | 2 +- library.properties | 2 +- src/ESP_SSLClient.h | 4 ++-- src/client/BSSL_SSL_Client.cpp | 4 ++-- src/client/BSSL_SSL_Client.h | 10 +++++----- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/library.json b/library.json index ab6238c..7177fb5 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "ESP_SSLClient", - "version": "2.1.6", + "version": "2.1.7", "keywords": "communication, REST, esp32, esp8266, arduino", "description": "This library provided the Secure Layer Networking (SSL/TLS) TCP Client for ESP8266, ESP32 and Raspberry Pi RP2040, Teensy, SAMD, AVR and other Arduino devices (except for avr) that support external networking interfaces e.g., WiFiClient, EthernetClient and GSMClient.", "repository": { diff --git a/library.properties b/library.properties index 219fb69..f5d42ef 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=ESP_SSLClient -version=2.1.6 +version=2.1.7 author=Mobizt diff --git a/src/ESP_SSLClient.h b/src/ESP_SSLClient.h index a77b080..58ae1d4 100644 --- a/src/ESP_SSLClient.h +++ b/src/ESP_SSLClient.h @@ -1,8 +1,8 @@ /** * - * The ESP SSL Client Class, ESP_SSLClient.h v2.1.6 + * The ESP SSL Client Class, ESP_SSLClient.h v2.1.7 * - * Created August 27, 2023 + * Created September 2, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) diff --git a/src/client/BSSL_SSL_Client.cpp b/src/client/BSSL_SSL_Client.cpp index 2b90a18..2d97629 100644 --- a/src/client/BSSL_SSL_Client.cpp +++ b/src/client/BSSL_SSL_Client.cpp @@ -1,7 +1,7 @@ /** - * BSSL_SSL_Client library v1.0.11 for Arduino devices. + * BSSL_SSL_Client library v1.0.12 for Arduino devices. * - * Created August 27, 2003 + * Created September 2, 2003 * * This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab. * diff --git a/src/client/BSSL_SSL_Client.h b/src/client/BSSL_SSL_Client.h index 98a4268..5196de1 100644 --- a/src/client/BSSL_SSL_Client.h +++ b/src/client/BSSL_SSL_Client.h @@ -1,7 +1,7 @@ /** - * BSSL_SSL_Client library v1.0.11 for Arduino devices. + * BSSL_SSL_Client library v1.0.12 for Arduino devices. * - * Created August 27, 2003 + * Created September 2, 2003 * * This work contains codes based on WiFiClientSecure from Earle F. Philhower and SSLClient from OSU OPEnS Lab. * @@ -273,15 +273,15 @@ class BSSL_SSL_Client : public Client // store whether to enable debug logging int _debug_level = 0; - bool _is_connected; + bool _is_connected = false; // store the index of where we are writing in the buffer // so we can send our records all at once to prevent // weird timing issues - size_t _write_idx; + size_t _write_idx = 0; // store the last BearSSL state so we can print changes to the console - unsigned _bssl_last_state; + unsigned int _bssl_last_state = 0; bool _secure = false;