fix a null pointer in kernel_threads_cond

This commit is contained in:
georgemoralis 2024-06-09 23:08:17 +03:00
parent b30bedd0ae
commit db10dfaabd
1 changed files with 3 additions and 2 deletions

View File

@ -221,8 +221,9 @@ int PS4_SYSV_ABI scePthreadCondInit(OrbisPthreadCond* cond, const OrbisPthreadCo
if (attr == nullptr) {
attr = g_pthread_cxt->getDefaultCondattr();
}
if (name != nullptr) {
(*cond)->name = name;
}
int result = pthread_cond_init(&(*cond)->cond, &(*attr)->cond_attr);
if (result != 0) {