summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Bienkowski <abenkovskii@gmail.com>2018-01-30 15:04:11 +0300
committerDaniel Veillard <veillard@redhat.com>2018-07-23 10:21:38 +0800
commitd2293cdbc83b3ca79b9d7132c5a62dfd7e3751be (patch)
tree6656f3c8a816063bce50cac52521c43ff824d369
parent35e83488505d501864826125cfe6a7950d6cba78 (diff)
downloadlibxml2-d2293cdbc83b3ca79b9d7132c5a62dfd7e3751be.tar.gz
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 <veillard@redhat.com>
-rw-r--r--encoding.c2
1 files changed, 0 insertions, 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
*/