From df02bc02df1e9853c7af285cd726c800c0d9df25 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 23 Feb 2026 07:15:28 +0100 Subject: Fixed possible crash in xs_regex_split_n(). --- xs_regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs_regex.h b/xs_regex.h index 5ccefda..a2792c7 100644 --- a/xs_regex.h +++ b/xs_regex.h @@ -58,7 +58,7 @@ xs_list *xs_regex_split_n(const char *str, const char *rx, int count) } /* add the rest of the string */ - list = xs_list_append(list, p); + list = xs_list_append(list, xs_is_string(p) ? p : ""); regfree(&re); -- cgit v1.2.3