dbertoni    00/04/25 12:46:20

  Modified:    c/src/XSLT Stylesheet.cpp
  Log:
  Protect against empty base identifier.
  
  Revision  Changes    Path
  1.13      +7 -4      xml-xalan/c/src/XSLT/Stylesheet.cpp
  
  Index: Stylesheet.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Stylesheet.cpp    2000/04/20 16:47:35     1.12
  +++ Stylesheet.cpp    2000/04/25 19:46:19     1.13
  @@ -144,11 +144,14 @@
        m_surrogateChildren(*this),
        m_elemDecimalFormats()
   {
  -     const XMLURL* const url = 
constructionContext.getURLFromString(m_baseIdent);
  -
  -     if (url != 0)
  +     if (length(m_baseIdent) != 0)
        {
  -             m_includeStack.push_back(url);
  +             const XMLURL* const url = 
constructionContext.getURLFromString(m_baseIdent);
  +
  +             if (url != 0)
  +             {
  +                     m_includeStack.push_back(url);
  +             }
        }
   }
   
  
  
  

Reply via email to