Skip to content

Commit 2c5c3db

Browse files
Revert "Speed up empty String creation slightly (#6573)"
This reverts commit 1aeea12.
1 parent 1aeea12 commit 2c5c3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/WString.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class String {
5353
// if the initial value is null or invalid, or if memory allocation
5454
// fails, the string will be marked as invalid (i.e. "if (s)" will
5555
// be false).
56-
String(const char *cstr = nullptr);
56+
String(const char *cstr = "");
5757
String(const String &str);
5858
String(const __FlashStringHelper *str);
5959
#ifdef __GXX_EXPERIMENTAL_CXX0X__

0 commit comments

Comments
 (0)