From ca60d7cb12f0373cd16cfda584f1c51e93738e31 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Thu, 5 Oct 2023 09:04:43 +0900 Subject: [PATCH] Improve line filters and substitution filters (#2032) (5) --- Src/DiffWrapper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/DiffWrapper.cpp b/Src/DiffWrapper.cpp index b0887a75d2d..0515eb2d2bb 100644 --- a/Src/DiffWrapper.cpp +++ b/Src/DiffWrapper.cpp @@ -506,6 +506,8 @@ int CDiffWrapper::PostFilter(PostFilterContext& ctxt, change* thisob, const file change* script = diff_2_buffers_xdiff( lineDataLeft.c_str(), lineDataLeft.length(), lineDataRight.c_str(), lineDataRight.length(), m_xdlFlags); + if (!script) + return 0; auto TranslateLineNumbers = [](change* thisob, change* script) {