Minor modifications

This commit is contained in:
anschrammh 2020-12-15 23:47:35 +01:00
parent 3e193233b4
commit 125a02c0e6
2 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,7 @@ void *CFGFileParser::parseFile()
if(!_sdCardManager.isMounted()) return NULL;
file = _sdCardManager.open(_resource);
//We check if the file name is not NULL :-)
if(!file)
{
delete dictioRef;

View File

@ -46,7 +46,6 @@ CFGParameterValue::~CFGParameterValue()
void CFGParameterValue::setValue(const char *value, bool isQuoted)
{
_quotedValue = isQuoted;
free(_value);_value = NULL;
_value = (char *) malloc((strlen(value) * sizeof(char)) + 1); //+1 for the string terminating character
strcpy(_value, value);