From 2c5c3dbaefc7c972c9e76caf2c3c406aa601c42c Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Tue, 1 Oct 2019 10:28:36 -0700 Subject: [PATCH] Revert "Speed up empty String creation slightly (#6573)" This reverts commit 1aeea124b358c3dc63e1c6fb96376695cf24840b. --- cores/esp8266/WString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/WString.h b/cores/esp8266/WString.h index 8c970abf14..558d1da858 100644 --- a/cores/esp8266/WString.h +++ b/cores/esp8266/WString.h @@ -53,7 +53,7 @@ class String { // if the initial value is null or invalid, or if memory allocation // fails, the string will be marked as invalid (i.e. "if (s)" will // be false). - String(const char *cstr = nullptr); + String(const char *cstr = ""); String(const String &str); String(const __FlashStringHelper *str); #ifdef __GXX_EXPERIMENTAL_CXX0X__