Cleanup: avoid redundant string copy

This may have been done because BLI_path_frame_get used to take a
non-const string.
This commit is contained in:
Campbell Barton
2023-04-19 12:32:42 +10:00
parent f8e23e495b
commit 643f8bcedd

View File

@@ -699,10 +699,8 @@ static int volume_sequence_frame(const Depsgraph *depsgraph, const Volume *volum
return 0;
}
char filepath[FILE_MAX];
STRNCPY(filepath, volume->filepath);
int path_frame, path_digits;
if (!(volume->is_sequence && BLI_path_frame_get(filepath, &path_frame, &path_digits))) {
if (!(volume->is_sequence && BLI_path_frame_get(volume->filepath, &path_frame, &path_digits))) {
return 0;
}