From feffbe974b6ea96f55bb56e89c360a48252c36e7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 13 Jul 2015 03:43:41 +1000 Subject: [PATCH] Remove redundant string copy --- source/blender/blenlib/intern/fileops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index f074619aeee..0bef763b254 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -314,9 +314,7 @@ static bool delete_recursive(const char *dir) i = nbr = BLI_filelist_dir_contents(dir, &filelist); fl = filelist; while (i--) { - char file[FILE_MAXFILE]; - - BLI_split_file_part(fl->path, file, sizeof(file)); + const char *file = BLI_path_basename(fl->path); if (FILENAME_IS_CURRPAR(file)) { /* Skip! */