fix syntax error

This commit is contained in:
Christophe Painchaud
2021-02-05 17:50:34 +01:00
committed by GitHub
parent bd59d98b91
commit 9d9d314a0c
+1 -1
View File
@@ -89,7 +89,7 @@ void WiFiManagerParameter::setValue(const char *defaultValue, int length) {
if(_length != length){
_length = length;
if( _value != nullptr)
delete _value;
delete[] _value;
_value = new char[_length + 1];
}
memset(_value, 0, _length + 1); // explicit null