1 Star 0 Fork 32

hantwofish/gazelle_1

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0103-fix-func-stack_setup_thread-array-doesn-t-init.patch 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 9ed5bee888ab4936372a81919d894d8fd291e7c1 Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Tue, 26 Dec 2023 22:49:03 +0800
Subject: [PATCH] fix func stack_setup_thread array doesn't init
---
src/lstack/core/lstack_protocol_stack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lstack/core/lstack_protocol_stack.c b/src/lstack/core/lstack_protocol_stack.c
index 829313f..0aff1b4 100644
--- a/src/lstack/core/lstack_protocol_stack.c
+++ b/src/lstack/core/lstack_protocol_stack.c
@@ -648,7 +648,7 @@ int32_t stack_setup_thread(void)
int32_t ret;
char name[PATH_MAX];
int queue_num = get_global_cfg_params()->num_queue;
- struct thread_params *t_params[queue_num];
+ struct thread_params *t_params[queue_num] = {0};
int process_index = get_global_cfg_params()->process_idx;
for (uint32_t i = 0; i < queue_num; i++) {
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hantwofish/gazelle_1.git
git@gitee.com:hantwofish/gazelle_1.git
hantwofish
gazelle_1
gazelle_1
master

搜索帮助