Update tcompare.c

This commit is contained in:
dapan1121 2024-04-19 09:35:53 +08:00 committed by GitHub
parent 2f9313fbad
commit 417f7f3972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1204,7 +1204,7 @@ int32_t comparestrRegexNMatch(const void *pLeft, const void *pRight) {
}
static threadlocal regex_t pRegex;
static threadlocal char *pOldPattern;
static threadlocal char *pOldPattern = NULL;
static regex_t *threadGetRegComp(const char *pPattern) {
if (NULL != pOldPattern) {
if( strcmp(pOldPattern, pPattern) == 0) {