diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-09-24 14:09:03 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-09-24 14:09:03 +0100 |
commit | c4b0ae8a90eda4e8efc92bea276e972da7f36064 (patch) | |
tree | d5db67e5a44fb504b895251a3f60ded331666bcc /src/lib/eolian/eolian_database.c | |
parent | 940209b8b5396b415266a5eebde40df9bf9548b6 (diff) | |
download | efl-c4b0ae8a90eda4e8efc92bea276e972da7f36064.tar.gz |
eolian: no need to double-sanitize paths, only do it when needed
Diffstat (limited to 'src/lib/eolian/eolian_database.c')
-rw-r--r-- | src/lib/eolian/eolian_database.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c index 08d5bfa9c4..01a329b40a 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) |