After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347465 - return value on success for xmlTextReaderPreservePattern is 0 or positive value
return value on success for xmlTextReaderPreservePattern is 0 or positive value
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: docs
2.4.26
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-14 00:33 UTC by Alan Luebcke
Modified: 2017-06-20 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alan Luebcke 2006-07-14 00:33:12 UTC
Documentation 
Section: HTML documentation
Returns a positive number in case of success and -1 in case of error

Correct version:
Returns 0 or a positivie number on success. 

Alternatively function return on success could be
return(++reader->patternNr)

instead of return(reader->patternNr++)


Other information:
Comment 1 Nick Wellnhofer 2017-06-20 13:56:21 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f