We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13a5a2 commit 586664bCopy full SHA for 586664b
ArduinoCore-Linux/cores/arduino/EthernetServer.h
@@ -172,15 +172,15 @@ class EthernetServer : public Server {
172
// non blocking check if we have any request to accept
173
if (!is_blocking) {
174
if (poll_rc <= 0 || !(pfd.revents & POLLIN)) {
175
- EthernetClient result;
+ EthernetClient result(nullptr);
176
return result;
177
}
178
179
180
// accept client connection (blocking call)
181
if ((client_fd = ::accept(server_fd, (struct sockaddr*)&client_addr,
182
&client_addr_len)) < 0) {
183
184
Logger.error("accept failed");
185
186
0 commit comments