ecore_main: Check for null ptr deref

Summary: This patch fixes a tentative crash owing to dereference of fd_handler.

Test Plan: Execute test suite

Reviewers: cedric, raster, stefan, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D5754
This commit is contained in:
Myoungwoon Roy, Kim 2018-01-22 21:27:08 +09:00 committed by Jaehyun Cho
parent 2c66616179
commit 0a5b15ccac
1 changed files with 1 additions and 0 deletions

View File

@ -1498,6 +1498,7 @@ ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler,
Ecore_Fd_Prep_Cb func,
const void *data)
{
if (!fd_handler) return;
Efl_Loop_Data *pd = fd_handler->loop_data;
EINA_MAIN_LOOP_CHECK_RETURN;