1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

applied the patch suggested #309565 which can avoid looping in error

* encoding.c: applied the patch suggested #309565 which can avoid
  looping in error conditions.
Daniel
This commit is contained in:
Daniel Veillard 2005-08-24 14:22:55 +00:00
parent 73da77e0d7
commit 2644ab270e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Aug 24 16:19:00 CEST 2005 Daniel Veillard <daniel@veillard.com>
* encoding.c: applied the patch suggested #309565 which can avoid
looping in error conditions.
Wed Aug 24 16:04:17 CEST 2005 Daniel Veillard <daniel@veillard.com>
* SAX2.c tree.c: line numbers are now carried by most nodes, fixing

View File

@ -1919,7 +1919,7 @@ xmlCharEncInFunc(xmlCharEncodingHandler * handler, xmlBufferPtr out,
*/
if (ret == -3)
ret = 0;
return (written);
return (written? written : ret);
}
/**