Skip to content

Commit

Permalink
Fix uninitialized variables to prevent some code check tool warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Sep 1, 2023
1 parent 9039da5 commit d0d742c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=ESP_SSLClient

version=2.1.6
version=2.1.7

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/ESP_SSLClient.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/client/BSSL_SSL_Client.cpp
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down
10 changes: 5 additions & 5 deletions src/client/BSSL_SSL_Client.h
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d0d742c

Please sign in to comment.