[Bf-blender-cvs] [feffbe9] master: Remove redundant string copy
Campbell Barton
noreply at git.blender.org
Sun Jul 12 19:49:31 CEST 2015
Commit: feffbe974b6ea96f55bb56e89c360a48252c36e7
Author: Campbell Barton
Date: Mon Jul 13 03:43:41 2015 +1000
Branches: master
https://developer.blender.org/rBfeffbe974b6ea96f55bb56e89c360a48252c36e7
Remove redundant string copy
===================================================================
M source/blender/blenlib/intern/fileops.c
===================================================================
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index f074619..0bef763 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! */
More information about the Bf-blender-cvs
mailing list