Fix Coverity Scan CID 300471 (Using uninitialized value queue->mutex when calling free.)

This commit is contained in:
Dong Anyuan
2019-06-20 10:42:57 +09:00
parent 7ddaa8ed1b
commit 03cc588652
@@ -77,6 +77,7 @@ flexran_agent_task_queue_t *flexran_agent_task_queue_init(mid_t mod_id, size_t c
if (queue == NULL)
goto error;
queue->mutex = NULL;
/* If no comparator was given, use the default one */
if (cmp == NULL)
queue->cmp = _flexran_agent_task_queue_cmp;