devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=431c3cac58e6391f238e52d13d61b51bf2d6ff9e

commit 431c3cac58e6391f238e52d13d61b51bf2d6ff9e
Author: Chris Michael <[email protected]>
Date:   Tue Sep 23 14:58:37 2014 -0400

    eeze: Fix issue with eeze_udev_find_by_type not finding devices when
    name is NULL.
    
    Summary: This was totally wrong !! eeze_udev_find_by_type can be
    passed EEZE_UDEV_TYPE_NONE to list all devices and it can also be
    passed name == NULL to find All devices listed of a certain type. To
    check for !etype && !name is just plain Wrong !! We have checks below
    for a valid name (and then do a comparison).
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/eeze/eeze_udev_find.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index 71aa30b..252d7af 100644
--- a/src/lib/eeze/eeze_udev_find.c
+++ b/src/lib/eeze/eeze_udev_find.c
@@ -150,9 +150,6 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
    const char *devname;
    Eina_List *ret = NULL;
 
-   if ((!etype) && (!name))
-     return NULL;
-
    en = udev_enumerate_new(udev);
 
    if (!en)

-- 


Reply via email to