From 8125b8083525762f178d09ea879b5f448b21941b Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 20 Jul 2021 17:21:44 +0800 Subject: [PATCH] [td-225]fix compiler error. --- src/util/src/tcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index c1d3dad61d..6c20980e18 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -66,7 +66,7 @@ static void doCleanupDataCache(SCacheObj *pCacheObj); */ static void* taosCacheTimedRefresh(void *handle); -static pthread_t cacheRefreshWorker = 0; +static pthread_t cacheRefreshWorker = {0}; static pthread_once_t cacheThreadInit = PTHREAD_ONCE_INIT; static pthread_mutex_t guard = PTHREAD_MUTEX_INITIALIZER; static SArray* pCacheArrayList = NULL; -- GitLab