mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-27 21:16:50 +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:
parent
2ffcb3e57b
commit
613f04c195
@ -159,7 +159,6 @@ unsigned char String::changeBuffer(unsigned int maxStrLen) {
|
|||||||
buffer = newbuffer;
|
buffer = newbuffer;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
buffer = newbuffer;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user