mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Prevent null pointer dereference
This commit is contained in:
parent
f8c31dd56a
commit
2c7cc41f1b
@ -404,7 +404,7 @@ bool task_queue_ctl(enum task_queue_ctl_state state, void *data)
|
||||
|
||||
impl_current = &impl_regular;
|
||||
#ifdef HAVE_THREADS
|
||||
if (*boolean_val)
|
||||
if (boolean_val && *boolean_val)
|
||||
{
|
||||
task_queue_ctl(TASK_QUEUE_CTL_SET_THREADED, NULL);
|
||||
impl_current = &impl_threaded;
|
||||
|
Loading…
x
Reference in New Issue
Block a user