Fix String::clear() not clearing the string properly

Fixes: https://github.com/espressif/arduino-esp32/issues/4893
This commit is contained in:
me-no-dev
2021-03-04 21:20:27 +02:00
parent 6e7cc5210d
commit 22a488cf23
2 changed files with 13 additions and 3 deletions

View File

@ -130,9 +130,9 @@ String::~String() {
inline void String::init(void) {
setSSO(false);
setBuffer(nullptr);
setCapacity(0);
setLen(0);
setBuffer(nullptr);
}
void String::invalidate(void) {