GNOME Bugzilla – Bug 347465
return value on success for xmlTextReaderPreservePattern is 0 or positive value
Last modified: 2017-06-20 13:56:21 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:
Fixed with the following commit: https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f