Re: [xml] xmlTextReaderPrefix goes boom
- From: Daniel Veillard <veillard redhat com>
- To: Merijn Broeren <merijnb+libxml iloquent com>
- Cc: xml gnome org
- Subject: Re: [xml] xmlTextReaderPrefix goes boom
- Date: Mon, 17 Mar 2003 10:50:48 -0500
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]