I noticed that none of the TiXmlDocument c-tors initialize the errorId member. This leads to unexpected behavior if an application fetches it using TiXmlDocument::ErrorId() when no error occurred. I easily fixed the bug adding an "errorID = 0;" in all c-tors.
Best regards.
Nicola Civran
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I noticed that none of the TiXmlDocument c-tors initialize the errorId member. This leads to unexpected behavior if an application fetches it using TiXmlDocument::ErrorId() when no error occurred. I easily fixed the bug adding an "errorID = 0;" in all c-tors.
Best regards.
Nicola Civran