From 34999448c21e660a09581bd8933e055a44fd3132 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 12 May 2017 12:08:32 -0400 Subject: [PATCH] ecore: allow creation of fd handlers with no flags it's possible to set flags to 0 with another function, so allowing creation with 0 makes the api more consistent without breaking the documented behavior --- src/lib/ecore/ecore_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 22e2f45138..2df39c37ed 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -1378,7 +1378,7 @@ _ecore_main_fd_handler_add(int fd, DBG("_ecore_main_fd_handler_add"); Ecore_Fd_Handler *fdh = NULL; - if ((fd < 0) || (flags == 0) || (!func)) return NULL; + if ((fd < 0) || (flags < 0) || (!func)) return NULL; fdh = ecore_fd_handler_calloc(1); if (!fdh) return NULL;