fix a null pointer in kernel_threads_cond
This commit is contained in:
parent
b30bedd0ae
commit
db10dfaabd
|
@ -221,8 +221,9 @@ int PS4_SYSV_ABI scePthreadCondInit(OrbisPthreadCond* cond, const OrbisPthreadCo
|
||||||
if (attr == nullptr) {
|
if (attr == nullptr) {
|
||||||
attr = g_pthread_cxt->getDefaultCondattr();
|
attr = g_pthread_cxt->getDefaultCondattr();
|
||||||
}
|
}
|
||||||
|
if (name != nullptr) {
|
||||||
(*cond)->name = name;
|
(*cond)->name = name;
|
||||||
|
}
|
||||||
|
|
||||||
int result = pthread_cond_init(&(*cond)->cond, &(*attr)->cond_attr);
|
int result = pthread_cond_init(&(*cond)->cond, &(*attr)->cond_attr);
|
||||||
if (result != 0) {
|
if (result != 0) {
|
||||||
|
|
Loading…
Reference in New Issue