diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2020-04-24 11:52:59 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2020-04-24 11:52:59 +0200 |
commit | 890d0d005793d54f4362f45d3b5a8831f71f53f3 (patch) | |
tree | 75db7caf83716faee30a4fe7162776ff3fe3de77 | |
parent | f5516e896d690a233c1747cdc7c893db15c240c1 (diff) | |
download | efl-890d0d005793d54f4362f45d3b5a8831f71f53f3.tar.gz |
Revert "exactness: use convinience ecore_file function to get dir"
This reverts commit d4c8bd4f4fcdca9aa18c2c9400fb8a1f6449e7a5.
-rw-r--r-- | src/bin/exactness/player.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c index befd028852..0662181e39 100644 --- a/src/bin/exactness/player.c +++ b/src/bin/exactness/player.c @@ -889,15 +889,15 @@ _setup_dest_type(const char *dest, Eina_Bool external_injection) if (!strcmp(_dest + strlen(_dest) - 4,".exu")) { _dest_type = FTYPE_EXU; - char *path = ecore_file_dir_get(dest); + /* Cut path at the beginning of the file name */ + char *file_start = strrchr(dest, '/'); + *file_start = '\0'; - if (!ecore_file_mkpath(path)) + if (!ecore_file_mkpath(dest)) { - fprintf(stderr, "Path for %s cannot be created\n", _dest); - free(path); + fprintf(stderr, "Path for %s cannot be created\n", dest); return EINA_FALSE; } - free(path); } else { |