aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/render2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-18 10:24:40 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-18 10:24:40 -0400
commitac6a91864439d346ce72cfedca93e69c8ecdb1ac (patch)
tree1cc9d0d48951c91c268a5cd7acb09699b92d41c4 /src/lib/evas/canvas/render2
parentecore-input-evas: Fix Coverity CID1306803 (logically dead code) (diff)
downloadefl-ac6a91864439d346ce72cfedca93e69c8ecdb1ac.tar.gz
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>
Diffstat (limited to 'src/lib/evas/canvas/render2')
-rw-r--r--src/lib/evas/canvas/render2/evas_render2_th_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/render2/evas_render2_th_main.c b/src/lib/evas/canvas/render2/evas_render2_th_main.c
index c462d870f4..54b3428c12 100644
--- a/src/lib/evas/canvas/render2/evas_render2_th_main.c
+++ b/src/lib/evas/canvas/render2/evas_render2_th_main.c
@@ -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;