Re: [xml] xmlTextReaderPrefix goes boom



On Mon, Mar 17, 2003 at 04:15:26PM +0100, Merijn Broeren wrote:
Hello,

When feeding the xmlTextReaderPrefix in xmlreader.c an xml text with an 
element that does not have a namespace the following code goes boom:

    if ((node->ns != NULL) || (node->ns->prefix != NULL))
      return(xmlStrdup(node->ns->prefix));

I do believe that should read :

    if ((node->ns != NULL) && (node->ns->prefix != NULL))
      return(xmlStrdup(node->ns->prefix));


  Dohhh ! Fixed in CVS :-)
  thanks a lot,

which will ensure world peace. 

  If only I could, <sigh/>

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]