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;
|
impl_current = &impl_regular;
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
if (*boolean_val)
|
if (boolean_val && *boolean_val)
|
||||||
{
|
{
|
||||||
task_queue_ctl(TASK_QUEUE_CTL_SET_THREADED, NULL);
|
task_queue_ctl(TASK_QUEUE_CTL_SET_THREADED, NULL);
|
||||||
impl_current = &impl_threaded;
|
impl_current = &impl_threaded;
|
||||||
|
|
Loading…
Reference in New Issue