From 994662336cd98dd3cfa2ab3995d3dfb25f279f98 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 29 Jun 2024 17:09:11 -0700 Subject: txr: bugfix: reset top flag when copying context. * match.c (match_files): This function sometimes receives a copy of a top-marked context. The copy must not be top-marked, or very bad things happen. --- match.c | 1 + 1 file changed, 1 insertion(+) diff --git a/match.c b/match.c index 4924fe8f..451fac24 100644 --- a/match.c +++ b/match.c @@ -5077,6 +5077,7 @@ out: static val match_files(match_files_ctx c) { + c.top = 0; return match_files_byref(&c); } -- cgit v1.2.3