From 132ae9683c242b695d1bb3050c09f83386d0667d Mon Sep 17 00:00:00 2001 From: Artem Popov Date: Tue, 20 Sep 2016 19:52:23 +0300 Subject: [PATCH] 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 a368cf35fb..71fdb680ec 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; }