mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-02 23:26:20 +00:00
pthread_spec: Zero initialize array
This commit is contained in:
parent
93d7982117
commit
1318155ef3
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ int PS4_SYSV_ABI posix_pthread_setspecific(PthreadKeyT key, const void* value) {
|
|||
Pthread* pthread = g_curthread;
|
||||
|
||||
if (!pthread->specific) {
|
||||
pthread->specific = new PthreadSpecificElem[PthreadKeysMax];
|
||||
pthread->specific = new PthreadSpecificElem[PthreadKeysMax]{};
|
||||
if (!pthread->specific) {
|
||||
return POSIX_ENOMEM;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue