🐞 fix(packet init): init packet need free as 0

This commit is contained in:
yangwei
2024-08-06 15:32:24 +08:00
committed by luwenpeng
parent 5eb1f98a21
commit ee69595720

View File

@@ -162,6 +162,8 @@ static void *work_thread(void *arg)
uint16_t thr_idx = thread->idx; uint16_t thr_idx = thread->idx;
__thread_id = thr_idx; __thread_id = thr_idx;
memset(packets, 0, sizeof(packets));
snprintf(thd_name, sizeof(thd_name), "stellar:%d", thr_idx); snprintf(thd_name, sizeof(thd_name), "stellar:%d", thr_idx);
prctl(PR_SET_NAME, (unsigned long long)thd_name, NULL, NULL, NULL); prctl(PR_SET_NAME, (unsigned long long)thd_name, NULL, NULL, NULL);