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 da472d9 commit 4146808Copy full SHA for 4146808
libraries/WiFi/src/WiFiUdp.cpp
@@ -42,7 +42,7 @@ uint8_t WiFiUDP::begin(IPAddress address, uint16_t port){
42
43
server_port = port;
44
45
- tx_buffer = new char[1460];
+ tx_buffer = new (std::nothrow) char[1460];
46
if(!tx_buffer){
47
log_e("could not create tx buffer: %d", errno);
48
return 0;
@@ -134,7 +134,7 @@ int WiFiUDP::beginPacket(){
134
135
// allocate tx_buffer if is necessary
136
137
138
139
140
0 commit comments