Remove redundant string copy
This commit is contained in:
@@ -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! */
|
||||||
|
|||||||
Reference in New Issue
Block a user