提交 c1b39b20 编写于 作者: R Rich Felker

simplify pthread_key_delete

calling this function on an uninitialized key value is UB, so there is
no need to check that the table pointer was initialized.
上级 c9806fc2
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
int pthread_key_delete(pthread_key_t k) int pthread_key_delete(pthread_key_t k)
{ {
if (libc.tsd_keys) libc.tsd_keys[k] = 0; libc.tsd_keys[k] = 0;
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册