From: Václav Slavík Date: Mon, 24 Sep 2007 22:09:06 +0000 (+0000) Subject: wxXmlNode::GetAttribute's pointer argument must not be NULL, check for it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc24bf919256e8e1d317dbb8e67df6d007d641ea?ds=inline 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 --- diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index a35d73b267..1f1539556d 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -143,6 +143,8 @@ bool wxXmlNode::HasAttribute(const wxString& attrName) const bool wxXmlNode::GetAttribute(const wxString& attrName, wxString *value) const { + wxCHECK_MSG( value, false, "value argument must not be NULL" ); + wxXmlAttribute *attr = GetAttributes(); while (attr)