For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

[BUG] Uninitialized variable in XmlMDataStd_NamedDataDriver.cxx

Denis Barbier's picture
Forums: 

As Pawel noticed in http://www.opencascade.org/org/forum/thread_21388/ this file contains several occurences of this pattern:

LDOM_Element* aCurElement;
if (aCurNode.isNull())
aCurNode = anElement.getFirstChild();
else
aCurNode = aCurElement->getNextSibling();

Of course, aCurElement is uninitialized in the else clause.