From d2293cdbc83b3ca79b9d7132c5a62dfd7e3751be Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Tue, 30 Jan 2018 15:04:11 +0300 Subject: Remove a misleading line from xmlCharEncOutput Closes: https://bugzilla.gnome.org/show_bug.cgi?id=793028 It seams this line was accidentally copied over from xmlCharEncOutFunc. In xmlCharEncOutput output is a pointer so incrementing it by ret can point it where it wasn't supposed to be pointing. Luckily the current implementation doesn't dereference the pointer after advancing it. Signed-off-by: Daniel Veillard --- encoding.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/encoding.c b/encoding.c index de7b511a..a3aaf10e 100644 --- a/encoding.c +++ b/encoding.c @@ -2460,8 +2460,6 @@ retry: ret = -3; } - if (ret >= 0) output += ret; - /* * Attempt to handle error cases */ -- cgit v1.2.1