Revert "Merge pull request #1206 from cpainchaud/patch-1"

This reverts commit 65d3affda3, reversing
changes made to fe8d2970a0.
This commit is contained in:
tablatronix
2021-03-17 13:46:00 -05:00
parent 65d3affda3
commit 1431ca7615
+2 -6
View File
@@ -86,12 +86,8 @@ void WiFiManagerParameter::setValue(const char *defaultValue, int length) {
// // return false; //@todo bail
// }
if(_length != length){
_length = length;
if( _value != nullptr)
delete[] _value;
_value = new char[_length + 1];
}
_length = length;
_value = new char[_length + 1];
memset(_value, 0, _length + 1); // explicit null
if (defaultValue != NULL) {