提交 60a9725d 编写于 作者: F freemine

replace array initializer with memset

上级 54af96b6
......@@ -177,7 +177,8 @@ static void* routine(void* arg) {
ep_t *ep = (ep_t*)arg;
while (!ep->stopping) {
struct epoll_event evs[10] = {0};
struct epoll_event evs[10];
memset(evs, 0, sizeof(evs));
A(0==pthread_mutex_lock(&ep->lock), "");
A(ep->waiting==0, "internal logic error");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册