Skip to content

Commit 96c0079

Browse files
authored
Merge pull request #1 from mitchcapper/pr_135
Fix for handling changes introduced in postprocess
2 parents d5b7241 + 84d5b05 commit 96c0079

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/htsparse.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3341,12 +3341,10 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
33413341
hts_log_print(opt, LOG_DEBUG, "engine: postprocess-html: %s%s",
33423342
urladr(), urlfil());
33433343
if (RUN_CALLBACK4(opt, postprocess, &cAddr, &cSize, urladr(), urlfil()) == 1) {
3344-
if (cAddr != TypedArrayElts(output_buffer)) {
3345-
hts_log_print(opt, LOG_DEBUG,
3346-
"engine: postprocess-html: callback modified data, applying %d bytes", cSize);
3347-
TypedArraySize(output_buffer) = 0;
3348-
TypedArrayAppend(output_buffer, cAddr, cSize);
3349-
}
3344+
hts_log_print(opt, LOG_DEBUG,
3345+
"engine: postprocess-html: callback modified data, applying %d bytes", cSize);
3346+
TypedArraySize(output_buffer) = 0;
3347+
TypedArrayAppend(output_buffer, cAddr, cSize);
33503348
}
33513349
}
33523350

0 commit comments

Comments
 (0)