ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix 18/88818/2
authorArtem Popov <artem.popov@samsung.com>
Tue, 20 Sep 2016 16:52:23 +0000 (19:52 +0300)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 20 Sep 2016 17:08:04 +0000 (10:08 -0700)
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

Change-Id: Icc5c17e6fd60b9137086fd93412c76e5a97a1f55
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
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;
      }