forked from enlightenment/efl
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:
parent
2c66616179
commit
0a5b15ccac
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue