summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-12 12:08:32 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-12 12:08:25 -0400
commit34999448c21e660a09581bd8933e055a44fd3132 (patch)
tree5585d5ae56224b08a5cc686210328285f4741a1c /src/lib/ecore
parent0eaa1a3fc2a16584d78155be400c7524992f4fc4 (diff)
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
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_main.c2
1 files changed, 1 insertions, 1 deletions
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,
1378 DBG("_ecore_main_fd_handler_add"); 1378 DBG("_ecore_main_fd_handler_add");
1379 Ecore_Fd_Handler *fdh = NULL; 1379 Ecore_Fd_Handler *fdh = NULL;
1380 1380
1381 if ((fd < 0) || (flags == 0) || (!func)) return NULL; 1381 if ((fd < 0) || (flags < 0) || (!func)) return NULL;
1382 1382
1383 fdh = ecore_fd_handler_calloc(1); 1383 fdh = ecore_fd_handler_calloc(1);
1384 if (!fdh) return NULL; 1384 if (!fdh) return NULL;