From 84d5b05ef23a8d7b3ae1bff8dd9a978d60d7cc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20S=C4=99k=20of=20Clearcode?= Date: Thu, 4 May 2017 15:22:56 +0200 Subject: [PATCH] Fix for handling changes introduced in postprocess --- src/htsparse.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/htsparse.c b/src/htsparse.c index 3da51583..63ed4105 100644 --- a/src/htsparse.c +++ b/src/htsparse.c @@ -3341,12 +3341,10 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) { hts_log_print(opt, LOG_DEBUG, "engine: postprocess-html: %s%s", urladr(), urlfil()); if (RUN_CALLBACK4(opt, postprocess, &cAddr, &cSize, urladr(), urlfil()) == 1) { - if (cAddr != TypedArrayElts(output_buffer)) { - hts_log_print(opt, LOG_DEBUG, - "engine: postprocess-html: callback modified data, applying %d bytes", cSize); - TypedArraySize(output_buffer) = 0; - TypedArrayAppend(output_buffer, cAddr, cSize); - } + hts_log_print(opt, LOG_DEBUG, + "engine: postprocess-html: callback modified data, applying %d bytes", cSize); + TypedArraySize(output_buffer) = 0; + TypedArrayAppend(output_buffer, cAddr, cSize); } }