Commit 03cc5886 authored by Dong Anyuan's avatar Dong Anyuan

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

parent 7ddaa8ed
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment