aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-15 15:32:14 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:20 -0700
commitc49d2939151ee503b8bf0467066f85bbeb86adba (patch)
tree0d3ce197041381199f6bf19410a2cf614314a632 /src/lib
parentelementary: destroy timer as they could tick during shutdown. (diff)
downloadefl-c49d2939151ee503b8bf0467066f85bbeb86adba.tar.gz
ecore: allow for NULL file handler request.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/ecore_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index c3127071f2..b716d307d7 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -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))