ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix
authorArtem Popov <artem.popov@samsung.com>
Tue, 20 Sep 2016 16:52:23 +0000 (19:52 +0300)
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>
Tue, 20 Sep 2016 16:52:23 +0000 (19:52 +0300)
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

index a368cf3..71fdb68 100644 (file)
@@ -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;
      }