knoaman 2002/08/12 06:24:10
Modified: c/src/xercesc/dom/impl DOMDocumentImpl.cpp
Log:
Check for empty string.
Revision Changes Path
1.17 +3 -2 xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
Index: DOMDocumentImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- DOMDocumentImpl.cpp 9 Aug 2002 21:43:14 -0000 1.16
+++ DOMDocumentImpl.cpp 12 Aug 2002 13:24:10 -0000 1.17
@@ -869,7 +869,8 @@
}
void DOMDocumentImpl::setVersion(const XMLCh* version){
- if (XMLString::compareString(version, XMLUni::fgSupportedVersion))
+ if (XMLString::stringLen(version) &&
+ XMLString::compareString(version, XMLUni::fgSupportedVersion))
throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
fVersion = cloneString(version);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]