From 5c1ba37adb2bf9de21af63948bfcfb246dd4a284 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 cf90bcc9..eb2a0d0d 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); } }