Skip to content

Commit c04989c

Browse files
committed
Initialize WiFiServer::_socket variable
1 parent 41b00ee commit c04989c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WiFiServer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
#include "WiFiClient.h"
2323
#include "WiFiServer.h"
2424

25-
WiFiServer::WiFiServer(uint16_t port)
25+
WiFiServer::WiFiServer(uint16_t port) :
26+
_socket(-1)
2627
{
2728
_port = port;
2829
}

0 commit comments

Comments
 (0)