Bug fixes:
- DataTreeCore: - Incorrectly added new child to parent - JSONparseCore: - Printed incomplete object (false error)
This commit is contained in:
@@ -757,7 +757,7 @@ bool CJSONparse::ParsePrimitive( CDataMember * Member )
|
||||
|
||||
bool CJSONparse::PrintString( char * String, int Len )
|
||||
{
|
||||
int BytesWritten;
|
||||
int BytesWritten = 0;
|
||||
|
||||
// Start quote
|
||||
if (write( OutputHandle, "\"", 1 ) < 0)
|
||||
@@ -913,7 +913,7 @@ bool CJSONparse::PrintObject( CDataMember * Object, const int Indent )
|
||||
if (write( OutputHandle, Spacer, SpacerLen ) < 0)
|
||||
return false;
|
||||
}
|
||||
if (write( OutputHandle, "}", 1 ))
|
||||
if (write( OutputHandle, "}", 1 ) < 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user