Re: [xml] xmlGetLineNo() always returns 0 for XML_TEXT_NODE
- From: Ralf Junker <ralfjunker gmx de>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] xmlGetLineNo() always returns 0 for XML_TEXT_NODE
- Date: Wed, 09 Jul 2008 15:17:59 +0200
At 13:39 07.07.2008, Daniel Veillard wrote:
can you check the enclosed patch fixes it for you ?
I checked some more and noticed that your patch suggests
if (ctxt->input != NULL)
ret->line = ctxt->input->line;
where similar assignments in SAX2.c use
if (ctxt->linenumbers) {
if (ctxt->input != NULL) {
if (ctxt->input->line < 65535)
ret->line = (short) ctxt->input->line;
else
ret->line = 65535;
Shouldn't the fix be just like this, especially because it takes care not to overflow ret->line ?
Ralf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]