diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-12 20:43:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-12 20:43:41 +0300 |
commit | feffbe974b6ea96f55bb56e89c360a48252c36e7 (patch) | |
tree | 27b7bf27511892656398a1563302fe951b7252c5 /source/blender/blenlib/intern/fileops.c | |
parent | 1893e5e4c285f5dad18e222060de74a9891120dd (diff) |
Remove redundant string copy
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 4 |
1 files changed, 1 insertions, 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! */ |