Prevent null pointer dereference

This commit is contained in:
twinaphex 2016-03-18 18:04:21 +01:00
parent f8c31dd56a
commit 2c7cc41f1b

View File

@ -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;