fix: init buffer to avoid invalid write

This commit is contained in:
Cary Xu 2022-05-29 00:37:18 +08:00
parent 5da1ead67b
commit 5374680649
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ SyncClientRequest* syncClientRequestFromRpcMsg2(const SRpcMsg* pRpcMsg) {
}
cJSON* syncClientRequest2Json(const SyncClientRequest* pMsg) {
char u64buf[128];
char u64buf[128] = {0};
cJSON* pRoot = cJSON_CreateObject();
if (pMsg != NULL) {