q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c4b0ae8a90eda4e8efc92bea276e972da7f36064

commit c4b0ae8a90eda4e8efc92bea276e972da7f36064
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Thu Sep 24 14:09:03 2015 +0100

    eolian: no need to double-sanitize paths, only do it when needed
---
 src/lib/eolian/eolian_database.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

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)

-- 


Reply via email to