diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index c1d3dad61d8a29c229ffbe17c4eb5cc6fcafc470..6c20980e181a78f12a34328b430119938b685d91 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;