nikawhite pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=132ae9683c242b695d1bb3050c09f83386d0667d

commit 132ae9683c242b695d1bb3050c09f83386d0667d
Author: Artem Popov <artem.po...@samsung.com>
Date:   Tue Sep 20 19:52:23 2016 +0300

    ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix
    
    Summary: There is wrong comparing while using strcmp function. Should be 
inverted.
    
    Reviewers: cedric, raster, NikaWhite
    
    Reviewed By: NikaWhite
    
    Subscribers: cedric, NikaWhite, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4291
---
 src/lib/ecore_file/ecore_file_path.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_file/ecore_file_path.c 
b/src/lib/ecore_file/ecore_file_path.c
index a368cf3..71fdb68 100644
--- a/src/lib/ecore_file/ecore_file_path.c
+++ b/src/lib/ecore_file/ecore_file_path.c
@@ -97,7 +97,7 @@ ecore_file_path_dir_exists(const char *in_dir)
    if (!__ecore_file_path_bin) return EINA_FALSE;
    EINA_LIST_FOREACH(__ecore_file_path_bin, l, dir)
      {
-        if (strcmp(dir, in_dir))
+        if (!strcmp(dir, in_dir))
           return EINA_TRUE;
      }
 

-- 


Reply via email to