summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-24 14:09:03 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-24 14:09:03 +0100
commitc4b0ae8a90eda4e8efc92bea276e972da7f36064 (patch)
treed5db67e5a44fb504b895251a3f60ded331666bcc
parent940209b8b5396b415266a5eebde40df9bf9548b6 (diff)
downloadefl-c4b0ae8a90eda4e8efc92bea276e972da7f36064.tar.gz
eolian: no need to double-sanitize paths, only do it when needed
-rw-r--r--src/lib/eolian/eolian_database.c12
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)