From 31b6c52cfc6f55816a4b7afd4e663c2e429a1e17 Mon Sep 17 00:00:00 2001 From: guomj3 Date: Mon, 20 Oct 2025 17:24:15 +0800 Subject: [PATCH] Fix unexpected modification of parameter extra_dicts --- zhparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhparser.c b/zhparser.c index 77c4c45..6fde37b 100644 --- a/zhparser.c +++ b/zhparser.c @@ -222,7 +222,7 @@ static void init(){ } if(extra_dicts != NULL){ - if(!SplitIdentifierString(extra_dicts,',',&elemlist)){ + if(!SplitIdentifierString(pstrdup(extra_dicts),',',&elemlist)){ scws_free(scws); list_free(elemlist); scws = NULL;