diff --git a/encoding.c b/encoding.c index 5d28e4f1..5e7b03af 100644 --- a/encoding.c +++ b/encoding.c @@ -2496,7 +2496,7 @@ retry: */ toconv = xmlBufUse(in); if (toconv == 0) - return (0); + return (writtentot); if (toconv > 64 * 1024) toconv = 64 * 1024; if (toconv * 4 >= written) {