[td-822] fix compiler error

This commit is contained in:
Haojun Liao 2020-07-02 01:13:21 +08:00
parent 3afe4cc458
commit a9ef9ff97e
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ SCacheObj *taosCacheInitWithCb(int32_t keyType, int64_t refreshTimeInSeconds, bo
return NULL;
}
pthread_attr_t thattr = {0};
pthread_attr_t thattr = {{0}};
pthread_attr_init(&thattr);
pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE);