mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
fixes #1528
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ void WiFiManagerParameter::setValue(const char *defaultValue, int length) {
|
||||
// // return false; //@todo bail
|
||||
// }
|
||||
|
||||
if(_length != length){
|
||||
if(_length != length || _value == nullptr){
|
||||
_length = length;
|
||||
if( _value != nullptr){
|
||||
delete[] _value;
|
||||
|
||||
Reference in New Issue
Block a user