From: Artem Popov Date: Tue, 20 Sep 2016 16:52:23 +0000 (+0300) Subject: ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix X-Git-Tag: upstream/1.20.0~4278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132ae9683c242b695d1bb3050c09f83386d0667d;p=platform%2Fupstream%2Fefl.git 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 --- 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; }