Hi, I think that my previous patch was actually quite incomplete... I tried to find all the place that should be modified so that the state and the mode have the correct value both in case of success and in case of error. Let me know if this was the correct way to do it, and if not what I could improve in the patch Julien
-----Original Message----- From: xml-bounces gnome org [mailto:xml-bounces gnome org] On Behalf Of Julien Reichel Sent: jeudi, 8. mars 2007 14:10 To: xml gnome org Subject: [xml] Minor bug in xmlreader.c I think I might have found a minor bug in xmlreader.c When reaching the end of a file, reader->mode is not correct. This patch leave reader->mode=XML_TEXTREADER_MODE_EOF and set reader->state to XML_TEXTREADER_DONE Julien
Attachment:
xmlreader_v2.patch
Description: xmlreader_v2.patch