forked from enlightenment/efl
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
This commit is contained in:
parent
0eaa1a3fc2
commit
34999448c2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue