summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-04-24 11:52:59 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-24 11:52:59 +0200
commit890d0d005793d54f4362f45d3b5a8831f71f53f3 (patch)
tree75db7caf83716faee30a4fe7162776ff3fe3de77
parentf5516e896d690a233c1747cdc7c893db15c240c1 (diff)
Revert "exactness: use convinience ecore_file function to get dir"
This reverts commit d4c8bd4f4fcdca9aa18c2c9400fb8a1f6449e7a5.
-rw-r--r--src/bin/exactness/player.c10
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)
889 if (!strcmp(_dest + strlen(_dest) - 4,".exu")) 889 if (!strcmp(_dest + strlen(_dest) - 4,".exu"))
890 { 890 {
891 _dest_type = FTYPE_EXU; 891 _dest_type = FTYPE_EXU;
892 char *path = ecore_file_dir_get(dest); 892 /* Cut path at the beginning of the file name */
893 char *file_start = strrchr(dest, '/');
894 *file_start = '\0';
893 895
894 if (!ecore_file_mkpath(path)) 896 if (!ecore_file_mkpath(dest))
895 { 897 {
896 fprintf(stderr, "Path for %s cannot be created\n", _dest); 898 fprintf(stderr, "Path for %s cannot be created\n", dest);
897 free(path);
898 return EINA_FALSE; 899 return EINA_FALSE;
899 } 900 }
900 free(path);
901 } 901 }
902 else 902 else
903 { 903 {