1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

Update WString.cpp

realloc() is called with newSize > 0 (at least 16), so newbuffer==0 means the old memory was not deallocated. Therefore, the pointer should still point to the old buffer. This change should resolve issue #3516.
This commit is contained in:
adams13x13 2017-08-20 20:52:19 +02:00 committed by Ivan Grokhotkov
parent 2ffcb3e57b
commit 613f04c195

View File

@ -159,7 +159,6 @@ unsigned char String::changeBuffer(unsigned int maxStrLen) {
buffer = newbuffer;
return 1;
}
buffer = newbuffer;
return 0;
}