From a182507bef2d0cd92052b3c5ebaf1d98278e0dad Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 17 Aug 2022 16:57:39 -0700 Subject: [PATCH] Fix issue when the files-from list isn't nl terminated. --- exclude.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exclude.c b/exclude.c index 730d04ef..777874aa 100644 --- a/exclude.c +++ b/exclude.c @@ -361,6 +361,8 @@ void implied_include_partial_string(const char *s_start, const char *s_end) void free_implied_include_partial_string() { if (partial_string_buf) { + if (partial_string_len) + add_implied_include("", 0); free(partial_string_buf); partial_string_buf = NULL; } -- 2.47.2