evas-render2: Fix Coverity CID1306141: Dereference null return value

Summary: Coverity reports that eina_thread_queue_wait was returning
NULL and thus msg variable being used here causes dereferencing a null
pointer.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-06-18 10:24:40 -04:00
parent b35e107603
commit ac6a918644
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ _evas_render2_th_main(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
for (;;)
{
msg = eina_thread_queue_wait(_th_main_queue, &ref);
_evas_render2_th_main_do(msg->eo_e, msg->e);
if (msg)
_evas_render2_th_main_do(msg->eo_e, msg->e);
eina_thread_queue_wait_done(_th_main_queue, ref);
}
return NULL;