ecore: allow for NULL file handler request.

This commit is contained in:
Cedric BAIL 2018-05-15 15:32:14 -07:00
parent 0d52ded215
commit c49d293915
1 changed files with 2 additions and 0 deletions

View File

@ -1555,6 +1555,8 @@ ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler,
EAPI int
ecore_main_fd_handler_fd_get(Ecore_Fd_Handler *fd_handler)
{
if (!fd_handler) return -1;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(-1);
if (!ECORE_MAGIC_CHECK(fd_handler, ECORE_MAGIC_FD_HANDLER))