提交 4f249949 编写于 作者: R Rich Felker

fix uninitialized waiters field in semaphores

上级 43ee4df3
......@@ -9,5 +9,6 @@ int sem_init(sem_t *sem, int pshared, unsigned value)
return -1;
}
sem->__val[0] = value;
sem->__val[1] = 0;
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册