fix uninited value
This commit is contained in:
parent
eeb71acdf6
commit
7f8195b3a5
|
@ -510,7 +510,7 @@ static SCliConn* getConnFromPool(void* pool, char* ip, uint32_t port) {
|
||||||
SHashObj* pPool = pool;
|
SHashObj* pPool = pool;
|
||||||
SConnList* plist = taosHashGet(pPool, key, strlen(key));
|
SConnList* plist = taosHashGet(pPool, key, strlen(key));
|
||||||
if (plist == NULL) {
|
if (plist == NULL) {
|
||||||
SConnList list;
|
SConnList list = {0};
|
||||||
taosHashPut(pPool, key, strlen(key), (void*)&list, sizeof(list));
|
taosHashPut(pPool, key, strlen(key), (void*)&list, sizeof(list));
|
||||||
plist = taosHashGet(pPool, key, strlen(key));
|
plist = taosHashGet(pPool, key, strlen(key));
|
||||||
QUEUE_INIT(&plist->conn);
|
QUEUE_INIT(&plist->conn);
|
||||||
|
|
Loading…
Reference in New Issue