diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index 3ce051fceea2555187bd954b3d9bcfdd6345d850..ac06cf4f3f8b4c7355904ec9da1495bb0d9beeca 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -254,7 +254,7 @@ SCacheObj *taosCacheInitWithCb(int64_t refreshTime, void (*freeCb)(void *data)) return NULL; } - pthread_attr_t thattr = {0}; + pthread_attr_t thattr; pthread_attr_init(&thattr); pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE); @@ -625,4 +625,4 @@ void* taosCacheRefresh(void *handle) { } return NULL; -} \ No newline at end of file +}