[libxml2] Remove a misleading line from xmlCharEncOutput



commit d2293cdbc83b3ca79b9d7132c5a62dfd7e3751be
Author: Andrey Bienkowski <abenkovskii gmail com>
Date:   Tue Jan 30 15:04:11 2018 +0300

    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>

 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
      */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]