Minor modifications
This commit is contained in:
parent
3e193233b4
commit
125a02c0e6
@ -16,6 +16,7 @@ void *CFGFileParser::parseFile()
|
|||||||
if(!_sdCardManager.isMounted()) return NULL;
|
if(!_sdCardManager.isMounted()) return NULL;
|
||||||
|
|
||||||
file = _sdCardManager.open(_resource);
|
file = _sdCardManager.open(_resource);
|
||||||
|
//We check if the file name is not NULL :-)
|
||||||
if(!file)
|
if(!file)
|
||||||
{
|
{
|
||||||
delete dictioRef;
|
delete dictioRef;
|
||||||
|
@ -46,7 +46,6 @@ CFGParameterValue::~CFGParameterValue()
|
|||||||
void CFGParameterValue::setValue(const char *value, bool isQuoted)
|
void CFGParameterValue::setValue(const char *value, bool isQuoted)
|
||||||
{
|
{
|
||||||
_quotedValue = isQuoted;
|
_quotedValue = isQuoted;
|
||||||
|
|
||||||
free(_value);_value = NULL;
|
free(_value);_value = NULL;
|
||||||
_value = (char *) malloc((strlen(value) * sizeof(char)) + 1); //+1 for the string terminating character
|
_value = (char *) malloc((strlen(value) * sizeof(char)) + 1); //+1 for the string terminating character
|
||||||
strcpy(_value, value);
|
strcpy(_value, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user