From: Daniel Kolesa Date: Thu, 24 Sep 2015 13:09:03 +0000 (+0100) Subject: eolian: no need to double-sanitize paths, only do it when needed X-Git-Tag: v1.16.0-alpha1~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4b0ae8a90eda4e8efc92bea276e972da7f36064;p=platform%2Fupstream%2Fefl.git eolian: no need to double-sanitize paths, only do it when needed --- diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c index 08d5bfa..01a329b 100644 --- a/src/lib/eolian/eolian_database.c +++ b/src/lib/eolian/eolian_database.c @@ -321,11 +321,13 @@ eolian_file_parse(const char *filepath) return EINA_FALSE; } if (!(eopath = eina_hash_find(is_eo ? _filenames : _tfilenames, filepath))) - eopath = filepath; - char *vpath = eina_file_path_sanitize(eopath); - Eina_Bool ret = eo_parser_database_fill(vpath, !is_eo); - free(vpath); - return ret; + { + char *vpath = eina_file_path_sanitize(filepath); + Eina_Bool ret = eo_parser_database_fill(vpath, !is_eo); + free(vpath); + return ret; + } + return eo_parser_database_fill(eopath, !is_eo); } static Eina_Bool _tfile_parse(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED, void *data, void *fdata)