Skip to content

Commit

Permalink
Fix NULL check in XmlNode_getSubNodeValueFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Nov 27, 2016
1 parent 3d55279 commit 76b9f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExternData/Resources/C-Sources/bsxml-json/bsxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ int XmlNode_getSubNodeValueInt(struct XmlNode *node, const String tag, int *valu
int XmlNode_getSubNodeValueFloat(struct XmlNode *node, const String tag, float *value )
{
XmlNodeRef child = XmlNode_findChild(node, tag );
if (node) {
if (child) {
XmlNode_getValueFloat(child, value );
return XML_OK;
}
Expand Down

0 comments on commit 76b9f5c

Please sign in to comment.