mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
replace new
by new (std::nothrow)
, remove arduino_new
This commit is contained in:
@ -41,7 +41,10 @@ void loop() {
|
||||
// wait for WiFi connection
|
||||
if ((WiFiMulti.run() == WL_CONNECTED)) {
|
||||
|
||||
std::unique_ptr<BearSSL::WiFiClientSecure>client(new BearSSL::WiFiClientSecure);
|
||||
std::unique_ptr<BearSSL::WiFiClientSecure>client(new (std::nothrow) BearSSL::WiFiClientSecure);
|
||||
if (client == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
client->setFingerprint(fingerprint);
|
||||
|
||||
|
Reference in New Issue
Block a user