wxXmlNode::GetAttribute's pointer argument must not be NULL, check for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -143,6 +143,8 @@ bool wxXmlNode::HasAttribute(const wxString& attrName) const
|
|||||||
|
|
||||||
bool wxXmlNode::GetAttribute(const wxString& attrName, wxString *value) const
|
bool wxXmlNode::GetAttribute(const wxString& attrName, wxString *value) const
|
||||||
{
|
{
|
||||||
|
wxCHECK_MSG( value, false, "value argument must not be NULL" );
|
||||||
|
|
||||||
wxXmlAttribute *attr = GetAttributes();
|
wxXmlAttribute *attr = GetAttributes();
|
||||||
|
|
||||||
while (attr)
|
while (attr)
|
||||||
|
Reference in New Issue
Block a user