From 86698e0b179f44c3f72cc8fdf54ff295adfda7f6 Mon Sep 17 00:00:00 2001 From: alex-huff Date: Mon, 6 Oct 2025 19:14:06 -0500 Subject: [PATCH] unicode-input: fix race condition causing incorrect results --- tools/unicode_names/query.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/unicode_names/query.go b/tools/unicode_names/query.go index 686872eef..bb1e9827e 100644 --- a/tools/unicode_names/query.go +++ b/tools/unicode_names/query.go @@ -99,6 +99,9 @@ func find_matching_codepoints(prefix string) (ans mark_set) { ans.AddItems(marks...) } } + if ans == nil { + ans = utils.NewSet[uint16](0) + } return ans }