You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by Joe Polastre <jp...@locus.apache.org> on 2000/07/07 02:14:12 UTC

cvs commit: xml-xerces/c/src/com XMLDOMElement.cpp

jpolast     00/07/06 17:14:12

  Modified:    c/src/com XMLDOMElement.cpp
  Log:
  bug fix
  
  Revision  Changes    Path
  1.4       +11 -8     xml-xerces/c/src/com/XMLDOMElement.cpp
  
  Index: XMLDOMElement.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/com/XMLDOMElement.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLDOMElement.cpp	2000/06/19 20:05:58	1.3
  +++ XMLDOMElement.cpp	2000/07/07 00:14:12	1.4
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: XMLDOMElement.cpp,v $
  + * Revision 1.4  2000/07/07 00:14:12  jpolast
  + * bug fix
  + *
    * Revision 1.3  2000/06/19 20:05:58  rahulj
    * Changes for increased conformance and stability. Submitted by
    * Curt.Arnold@hyprotech.com. Verified by Joe Polastre.
  @@ -104,14 +107,13 @@
   	V_VT(pVal) = VT_EMPTY;
   
   	DOMString a = element.getAttribute(name);
  -	if(a.length() > 0) {
  -		try {
  -			V_VT(pVal)   = VT_BSTR;
  -			V_BSTR(pVal) = SysAllocString(a.rawBuffer());
  -		}
  -		catch(...) {
  -			return E_FAIL;
  -		}
  +
  +	try {
  +		V_VT(pVal)   = VT_BSTR;
  +		V_BSTR(pVal) = SysAllocString(a.rawBuffer());
  +	}
  +	catch(...) {
  +		return E_FAIL;
   	}
   	
   	return S_OK;