From fcca57d8dab22f0aa6a718a1af7dd7a491e25a64 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Mon, 15 Jun 2020 18:50:28 +0800 Subject: [PATCH] [init varaible] --- src/plugins/http/src/httpSession.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/http/src/httpSession.c b/src/plugins/http/src/httpSession.c index e80d6f26b7..cc60890e18 100644 --- a/src/plugins/http/src/httpSession.c +++ b/src/plugins/http/src/httpSession.c @@ -46,6 +46,7 @@ void httpCreateSession(HttpContext *pContext, void *taos) { } HttpSession session; + memset(&session, 0, sizeof(HttpSession)); session.taos = taos; session.expire = (int)taosGetTimestampSec() + server->sessionExpire; session.access = 1; @@ -199,4 +200,4 @@ void httpProcessSessionExpire(void *handle, void *tmrId) { HttpServer *pServer = (HttpServer *)handle; httpRemoveExpireSessions(pServer); taosTmrReset(httpProcessSessionExpire, 60000, pServer, pServer->timerHandle, &pServer->expireTimer); -} \ No newline at end of file +} -- GitLab