Remove redundant string copy

This commit is contained in:
2015-07-13 03:43:41 +10:00
parent 1893e5e4c2
commit feffbe974b

View File

@@ -314,9 +314,7 @@ static bool delete_recursive(const char *dir)
i = nbr = BLI_filelist_dir_contents(dir, &filelist); i = nbr = BLI_filelist_dir_contents(dir, &filelist);
fl = filelist; fl = filelist;
while (i--) { while (i--) {
char file[FILE_MAXFILE]; const char *file = BLI_path_basename(fl->path);
BLI_split_file_part(fl->path, file, sizeof(file));
if (FILENAME_IS_CURRPAR(file)) { if (FILENAME_IS_CURRPAR(file)) {
/* Skip! */ /* Skip! */