summaryrefslogtreecommitdiff
path: root/src/bin/exactness/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/exactness/player.c')
-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 a3d6b04880..1e759e4c9b 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -883,15 +883,15 @@ _setup_dest_type(const char *dest, Eina_Bool external_injection)
883 if (!strcmp(_dest + strlen(_dest) - 4,".exu")) 883 if (!strcmp(_dest + strlen(_dest) - 4,".exu"))
884 { 884 {
885 _dest_type = FTYPE_EXU; 885 _dest_type = FTYPE_EXU;
886 /* Cut path at the beginning of the file name */ 886 char *path = ecore_file_dir_get(dest);
887 char *file_start = strrchr(dest, '/');
888 *file_start = '\0';
889 887
890 if (!ecore_file_mkpath(dest)) 888 if (!ecore_file_mkpath(path))
891 { 889 {
892 fprintf(stderr, "Path for %s cannot be created\n", dest); 890 fprintf(stderr, "Path for %s cannot be created\n", _dest);
891 free(path);
893 return EINA_FALSE; 892 return EINA_FALSE;
894 } 893 }
894 free(path);
895 } 895 }
896 else 896 else
897 { 897 {